Read file contents
// Read each line of the file infile.txt
BufferedReader rdr = new BufferedReader( new InputStreamReader(new FileInputStream("infile.txt"), "ISO-8859-1"));
String line = rdr.readLine();
In case of personal memory failures...
// Read each line of the file infile.txt
BufferedReader rdr = new BufferedReader( new InputStreamReader(new FileInputStream("infile.txt"), "ISO-8859-1"));
String line = rdr.readLine();
No comments:
Post a Comment