search a file for a string?
I have read the entire contents of my HD into a file called log1.log. I want to search that file to see if the word winzip appears anywhere within the file? what would the best way to go about this be? currently I am reading in each line of the file like this:
where line is a character array. I heard that maybe the strstr command would help me, but I got kind of stuck using it. Can someone please tell me if I am on the right track. Or if someone knows of a better way to go about this please let me know. Also, instead of reading all the resluts of the dir command into a file(which takes a while to search) can I just scan the HD for winzip32.exe? thanks for the help.