FileReader

// Demonstrate FileReader. 
import java.io.*; 
class FileReaderDemo { 
public static void main(String args[]) throws Exception { 
FileReader fr = new FileReader("FileReaderDemo.java"); 
BufferedReader br = new BufferedReader(fr); 
String s; 
while((s = br.readLine()) != null) { 
System.out.println(s); 

fr.close(); 

}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|