summary refs log blame commit diff stats
path: root/tests/accept/compile/treadln.nim
blob: 1117ab5f9d3b355caafbd211d8c4951f933c942a (plain) (tree)
1
2
3
4
5
6
7
8


                                                                    
   
            

              
                           


                           
            
# 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)