×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

JAVA example - How to read text from a file?


JAVA - How to read text from a file?

try 
{
        BufferedReader in = new BufferedReader(new FileReader("infilename"));
        String str;
        while ((str = in.readLine()) != null) 
   {
            process(str);
   }
        in.close();
} 

catch (IOException e)
 
    {

    }

Category: JAVA

 
<< Go back