summary refs log tree commit diff stats
path: root/tests/misc/treadln.nim
blob: 1edbea992bbcd73e66b4cc1fa8e8560917adc7c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# 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)