RosettaCodeData/Task/Input-loop/Yabasic/input-loop.basic
2023-07-01 13:44:08 -04:00

11 lines
209 B
Text

filename$ = "test.txt"
f = open(filename$)
if not f error "Could not open '" + filename$ + "' for reading"
while(not eof(f))
line input #f linea$
print linea$ // echo to the console
wend
close f
end