The file object, which encapsulates the existing or nonexistent files into a Java object.
Second, the file in the program is in the form of flow to operate.
Flow: Data in the data source Path between (file) and program (memory)
input stream: Data from the data source (file) to the path of the program (memory)
output stream: Data from program (memory) path to the data source (file)
How can I tell if I am an input stream or an output stream?
In memory, if the data flows to the memory flow, it is the input stream, and conversely, the output stream.
third, file stream --classification
The Java stream is divided into two types of streams
1, byte stream: can be used to read and write binary files and any type of file byte
2, Character stream: can be used to read and write text files, cannot manipulate binary files
Byte stream character Stream
input InputStream Reader
Output OutputStream Writer
IO stream in Java