Files
Nim/tests/compile/treadln.nim
2011-11-19 15:45:51 +01:00

13 lines
266 B
Nim
Executable File

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