file::readln()
Read a single line from the opened file
file::readln()
There are no parameters.
number|string|boolean
— Returns single line from the opened file. The return value is automatically converted to number, string, or boolean
import fileio
f = file("data.txt", file_read)
line1 = f.readln()
line2 = f.readln()
f.close()