BufferedReader reader = new BufferedReader(new FileReader(new File("file.in")));
BufferedWriter writer = new BufferedWriter(new FileWriter(new File("file.out")));
reader.readLine();
writer.write(...);
PrintWriter out = new PrintWriter("file.out");
out.println("Hello World");
out.close();
ObjectInputStream is = new ObjectInputStream(new FileInputStream(new File("file.in"))) ;
ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File("file.out"))) ;
is.readObject();
os.writeObject(Object);
is = new FileInputStream( new File("file.in") );
BufferedReader reader = new BufferedReader( new InputStreamReader(is , "GBK") );
import java.util.Scanner;
Scanner reader = new Scanner(new File("file.in"));
reader.hasNext...();
reader.next...();