f = freefile open f, "test.txt" while not eof(f) linea$ = readline(f) print linea$ # echo to the console end while close f end