Something like
    
    
    var
      f: File
      fname = "some file name"
      lineCnt = 0
    
    if open(f, fname):
      while f.readLine(line):
        # do something here with line
        inc lineCnt
      close(f)
    

Reply via email to