package collection;
import java.io.*;
import java.util.*;
public class Demo1 {
/**
* @param args
* @throws IOException
* @throws IOException
*/
public static void main(String[] args) throws IOException {
FileReader fr = new FileReader("F:\\demo.txt");
char[] buf = new char[1024];
int num = 0;
while((num = fr.read(buf))!=-1){
sop(new String(buf,0,num));
}
}
private static void sop(Object string) {
System.out.println(string);
}
}