Quote:
Originally Posted by LeonR
1.) Read the text file into an array of somekind - or step through one line at a time.
2.) loop through each element and see if it contains your search string.
If it does contain the search string, then append that line onto another array
|
Bad idea; for a 1000 line file you might need up to 1 million comparisons, which is O^2, which is bad (slow)
Use a Dictionary