I know that this exists to cover what I want to do:
for line in lines filename:
echo line
But how would I go about it using the readLine() function here?
Something like
var
f: File
fname = "some file name"
lineCnt = 0
if open(f, fname):
while f.readLine(line):
# do something here with line
inc lineCnt
close(f)
Nim/web/upload/system.html#readLine,File
"Returns false if the end of the file has been reached,"