public class readFileByChars {
public static void readFileByChars(String fileName) throws IOException {
FileReader m = new FileReader(fileName);
BufferedReader reader = new BufferedReader(m);
while(true)
{
String nextline = reader.readLine();
if (nextline == null) break;
System.out.println("got:" + nextline);
}
reader.close();
}
}