Fri, 17 May 2024


How to read text from a file?

By: Anton, NetArt Media
Sat, 18 September 2021

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

catch (IOException e)

{

}


Category: Web Development
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox