|
-
Jan 17th, 2000, 12:28 PM
#3
Is your file sorted in any way?
If so then you can start in the middle and only compare in one direction.
For example :
if the word was monkey
you would compare the string to the middle string of your array
if it was less than then search backward from the middle of the file if not then search forward.
Also you can terminate your loop once a match is found.
Just suggestions
------------------
Boothman
There is a war out there and it is about who controls the information, it's all about the information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|