Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i often want to write:

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: