Proper Java classes for reading and writing files?
问题 Reading some sources about Java file I/O managing, I get to know that there are more than 1 alternative for input and output operations. These are: BufferedReader and BufferedWriter FileReader and FileWriter FileInputStream and FileOutputStream InputStreamReader and OutputStreamWriter Scanner class What of these is best alternative for text files managing? What's best alternative for serialization? What does Java NIO say about it? 回答1: Two kinds of data Generally speaking there are two