Binary search on a HUGE file.
I understand the concept of a binary search, have been writing them for a while learned in high school, but they have always been searching with in arrays or linked lists in memory.
At the moment Iím trying to make a dictionary esk program, simplistically it will look in a text file to see if a word that has been typed in exists. The only problem is I donít know how to seek in a text file the correct way.
The file is a plain text file, on word per line, about 585,000 lines, no thatís not a typo :) there are over 585 thousand lines in the file... is there any way to do this, do I need to change the dictionary file in any way? Any help would be greatly appreciated, thanks.