mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 22:43:34 +00:00
* Remove install.txt and readme.txt * Refactor tests that use readme.txt * Tests open own source code
13 lines
277 B
Nim
13 lines
277 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, "tests/misc/treadln.nim"):
|
|
while not endOfFile(inp):
|
|
line = readLine(inp)
|
|
echo("#" & line & "#")
|
|
close(inp)
|