import Java.io.*;
// Read a file using BufferedReader.readLine()
public class ShowFileContent
{
public static void main(String args[]) throws Exception
{
FileReader fr = new FileReader("c:/autoexec.bat");
BufferedReader br = new BufferedReader(fr);
String line = null;
while ((line = br.readLine()) != null)
System.out.println(line);
br.close();
}
}