Hacker News new | ask | show | jobs
by bandie91 530 days ago
i often want to write:

  do {
    offset = tell(filehandle)
  } while(line = readline(filehandle))
  {
    print "line starts at offset: ", offset
  }