by Dinesh Thakur

 

import java.io.*;

class FileReaderJavaExample
{
        public static void main(String aa[]) throws IOException
       {
             String t=" ";
             int i;
             BufferedReader fin = new BufferedReader(new FileReader("ecomputernotes.bat"));
             while(true)
                  {
                         try
                           {
                               t= fin.readLine();
                               if (t==null) break;
                               System.out.println(t);
                           }
                               catch(IOException a){}
                   }
       }
}  

FileReader