by Dinesh Thakur Category: Stream

 

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



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Related Articles