Files
Nim/tests/misc/treadln.nim
2014-08-31 15:15:26 +02:00

13 lines
265 B
Nim

# test the improved readline handling that does not care whether its
# Macintosh, Unix or Windows text format.
var
inp: File
line: string
if open(inp, "readme.txt"):
while not endOfFile(inp):
line = readLine(inp)
echo("#" & line & "#")
close(inp)