I need to check the contents of a file for a string.Using VB Script, how do I efficiently search the contents of a file for a string?
Create a FileSystemObject, open the file for reading, and place its contents into a string. Then you can simply use INSTR function to determine if a string exists within your file.
No comments:
Post a Comment