Name
FileLines -- return a line-based iterator function (V5.0)
Synopsis
f = FileLines(file$)
Function
This function can be used in conjunction with the generic For statement to traverse over all lines of a file. It will return an iterator function which will return the next line of the file specified in file$. When the end of the file is reached, the iterator function will return Nil to break the generic For statement.

See Generic For statement for details.

Inputs
file$
source filename
Results
f
line-based iterator function
Example
For s$ In FileLines("Highscores.txt") Do DebugPrint(s$)
This will print all lines of the file "Highscores.txt".

Show TOC