|
-
September 24th, 2002, 11:48 PM
#1
search for a string in a file
Hi,
can some can through some ideas in searching for a string in a file efficiently .
Thanks,
-
September 25th, 2002, 12:06 AM
#2
Have a look at http://www.cs.utexas.edu/users/moore...ing-searching/. It is a fairly good starting point. Then look on the net for the two methods mentioned there and the word faster. If there aren't any hits, then possibly no one has formulated a method that is faster than those algorithms.
Succinct is verbose for terse
-
September 25th, 2002, 04:24 PM
#3
Depending on the type of data file, but there are two primary ways to search a string in a text file. One is via reading one line at a time. A second way is to map the entire file an search the mapped-file.
Kuphryn
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
|