-------------siwuxie095
Introduction to Java IO:
IO also writes "I/O", which can be understood as in and out, i.e. input and output
Therefore, the basic function of IO system is to read (fetch) and write (enter)
IO Stream (core of IO system)
function: Read and write data on the device, hard disk file, memory, keyboard, network data ...
Depending on the direction of the data, it can be divided into: input stream, output stream
Depending on the type of data processed, it can be divided into: byte stream, character stream
The difference between a byte stream and a character stream:
A byte stream can handle all types of data, such as MP3, pictures, text, video, and so on. When reading,
Read a byte to return a byte
"The corresponding class in Java ends with" Stream "
Character streams can only handle plain text data, such as txt text. When reading, read one or more bytes,
Finds the specified encoding table first, and then returns the detected characters
"The corresponding classes in Java End with" Reader "or" Writer "
"Made by siwuxie095"
Introduction to Java IO