mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 21:17:48 +00:00
13 lines
274 B
Nim
13 lines
274 B
Nim
# test the improved readline handling that does not care whether its
|
|
# Macintosh, Unix or Windows text format.
|
|
|
|
var
|
|
inp: TFile
|
|
line: string
|
|
|
|
if openFile(inp, "readme.txt"):
|
|
while not EndOfFile(inp):
|
|
line = readLine(inp)
|
|
echo("#" & line & "#")
|
|
closeFile(inp)
|