-
May 28th, 2013, 03:03 PM
#1
c# advice - parsing text file
Hi,
I got a large text file, and I want to find different sentences (strings) in this file.
What would be an efficient way to go through the file and look for different sentences?
I can read every line, and create tens of 'if' to see if each line contains any sentence.
I can also create a switch-case loop that goes through each line.
However, it doesn't sound that efficient.
I'd love to hear your suggestions.
Thanks in advance.
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
|