标签:and void sys readline can throw another while public
import java.io.*;
import java.util.Scanner;
public class ReadAndWriteTest {
public static void main(String[] args) throws IOException {
String filename = "C:\\Users\\Boyce\\IdeaProjects\\IdeaTest\\src\\com\\leewbl\\brains\\test.txt";
BufferedReader br = breader(filename);
String s = br.readLine();
while(s!=null){
System.out.print(s);
s=br.readLine();
}
br.close();
FileOutputStream out = writer(filename);
out.write(filename.getBytes());
out.close();
System.out.println(System.in.read());
copy("test.txt","copy.txt");
// System.out.println(readInt("please input a int"));
// System.out.println(readInt("another"));
}
}
标签:and void sys readline can throw another while public
原文地址:http://www.cnblogs.com/leewbl/p/7471134.html