FileReader
-
FileReader & BufferedReader & ObjectOutputStream & ObjectInputStream개발노하우/Java 2007. 5. 4. 10:14
// 파일을 입력받아 그 내용을 출력 import java.io.*; public class object { public static void main(String arg[])throws IOException{ File f = new File("ccc.txt"); FileReader fr = new FileReader(f); BufferedReader br = new BufferedReader(fr); while(true) { String s = br.readLine(); if(s==null) break; System.out.println(s); } br.close(); } } =======================================================================..