http://qs321.pair.com?node_id=382617


in reply to search a line in a file of 60,000 lines

If speed is your main concern, you might consider using the shell-solution; use 'sort' to sort the unsorted file, then 'diff' to compare them...
  • Comment on Re: search a line in a file of 60,000 lines