Does anybody know the best (fastest) way to read down a text file in asp.net
Current example:
If I have a text file with 3000 lines in it and I want to pick out every line with the word HELP in it I can use a System.io.streamreader to read the text file into a string, use the split function to break it into an array and the loop through the array looking for the HELP string....
This, as you can imagine, is slow. Not tragic, but slow enough. I am trying to get somewhere near the performance of the PHP Perl page I am replacing which seems unfeasably good at reading text files and grepping them for pattern matches.
Any ideas of how to get some better performance from asp.net here?
View my developerfusion forum post here