Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking files for words

Status
Not open for further replies.

Yoxy99

MIS
Jul 28, 2007
23
0
0
US
Hi I was wondering how I could check a text file to see if the word "success" was contained in it. I know I can use filestringreader and system.io to read the file but I dont know how I would use it to check to see if the word success was in the file. Any suggestions ?
 
A StringReader seems just like a StreamReader so you could use InStr or .Contains to check.

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top