1, the computer does not distinguish between binary files and text files, all files are stored in binary files
2, write the characters, the Java Virtual machine will be Unicode into the coding, read the reverse, Windows, the default encoding is ASCII
? 3, for text editor or text output program to create files, should be read with text input, for the Java binary output file should be used binary input to read
4, so the Java binary output file can be run on any machine with a Java VM, because the binary file and the host encoding scheme is irrelevant
5. txt is a text file, DAT is a binary file
? 6, Writebytes () for ASCII strings, with Writechar () quasi-yes
7, UTF-8 memory ASCII code as long as a byte, very advantageous
? 8, the IO class activates all methods to throw exception java.io.IOException, so you must declare the thrown exception in the method or put the code in the Try-catch block
Java text I/O and binary I/O