


The principle of writing data (memory -> hard disk): The pictures and text are read into the memory, and they are also read in bytes.ħ) We learn that this byte stream can read and write any file Ĩ) How to write data from memory to hard disk? Size: xxxM xxx bytes (so the video storage format is bytes), converted to MB for the convenience of viewing, one byte is 8 1010. When operating a stream, we must always make it clear that no matter what stream object is used, the underlying transmission is always binary data Text, pictures, and videos are all stored in the form of binary numbers, all of which are bytes one by one, so the same is true during transmission, so byte streams can transmit any file data The computer can only recognize binary: 0101. Once the computer is shut down, the data in the memory will be cleared ģ) Concept and classification of IO streamsįor example: read data from file to memory for useįor example: write the data in the memory to the hard disk for storageĭata flow (characters, bytes): The flow is data, and the data is divided into characters and bytesĪccording to the data read (character or byte):īyte stream: InputStream (byte input stream) OutputStream (byte output stream)Ĭharacter stream: Reader (character input stream) Writer (character output stream) When rotating, the head can read the data in each file Īll software execution must run to memory
