Scanning Files

Does anyone know where I can get an example of how to scan a file for a specified string? I know how to incorporate the DOS command "find," but I'd like to be able to get my program to react to the specified string. . .

Hmm. . . Hope that makes sense.


  • You have to load the entire file contents into a string variable then use the INSTR$ function. Refer to the qbasic help files for syntax and stuff.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!