Mon Nov 05, 2012 4:36 pm
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class ReadMyFile {
public static void main(String args[]) {
BufferedReader myBufferReader = null;
String filePath = "C://java.txt";
try {
myBufferReader = new BufferedReader(new FileReader(filePath));
} catch (IOException e) {
e.printStackTrace();
}
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.