mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
13 lines
265 B
Nim
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)
|