Read a file one line at a time,
as opposed to reading the entire file at once.



Related tasks

 Read a file character by character
 Input loop.


 
//Create a file object
 
%f = new fileObject();
 
//Open and read a file
 
%f.openForRead("PATH/PATH.txt");
 
while(!%f.isEOF())
{
	//Read each line from our file
 
	%line = %f.readLine();
}
 
//Close the file object
 
%f.close();
 
//Delete the file object
 
%f.delete();
 