7-1: IO stream of C + +

1: Input and output of C language and C++ IO stream In C language, there are three groups of input and output functions that we often use Input / outputOperation objectprintf/scanfConsolefprintf/fscanffilesprintf/sscanfCharacter array (buffer) The corresponding operations in C + + are as follows Input / outputOperation objectostream/isr ...

Added by spramod on Sun, 20 Feb 2022 19:37:03 +0200

Platinum west learning diary --- the principle and simple use of byte input and output stream

Byte is the basic unit of file transmission, and the file content is also stored in bytes. Reading data from the file to the program uses the input stream, and reading data from the program to the file uses the output stream. (take the program as the reference object) Output stream: superclass OutStream, whose subclass FileOutStream is used ...

Added by pastcow on Sat, 29 Jan 2022 22:46:54 +0200

The Java implementation compresses files or folders into zip

Recently, I came across a need to download the zip package, so I found the zip tool class written by others on the Internet. But I found many blogs and always found bug s. So I wrote a tool class myself. The functions of this tool class are: (1) You can compress files or folders (2) At the same time, it supports compression of multi-level folde ...

Added by cornelombaard on Wed, 12 Jan 2022 11:38:46 +0200

JAVA realizes file locking and tamper proof -- JAVA programming thought 83

In the code, you can lock the code fragment through the synchronized keyword. Suppose we need to lock the file, and synchronized can only lock the JAVA execution code. What if another thread operating the file is another local thread in the operating system? At this time, it is obviously not possible to lock only through the synchronized keywor ...

Added by Otoom on Sun, 19 Dec 2021 09:52:53 +0200

Summary of Java IO knowledge points

< ---------------------------------- Liao Xuefeng learns Java ---------------------------------------- > 1. File object Java's standard library, java.io, provides File objects to manipulate files and directoriesThe File object has three types of paths, one is getPath(), which returns the path passed in by the constructor, the other i ...

Added by kathas on Sun, 31 Oct 2021 03:36:24 +0200