import java.io.*;
public class ReadFile {
public static void main(String[] args) throws Exception {
File f = new File("C:/Hello.txt");
if (!f.exists() && f.length() < 0) {
System.out.println("The specified file does not exist");
} else {
FileReader fr = new FileReader(f);
BufferedReader reader = new BufferedReader(fr);
String st = "";
while ((st = reader.readLine()) != null) {
System.out.println(st);
}
}
}
}