Kung Wu
February 2nd, 2000, 01:24 AM
How to find a word in html or text file
|
Click to See Complete Forum and Search --> : Urgent! How to find a word in html or text files? Kung Wu February 2nd, 2000, 01:24 AM How to find a word in html or text file JimmyT February 2nd, 2000, 07:05 PM Usually you can use the INSTR (In String) function to locate a specific string, including entire words or phrases. February 3rd, 2000, 04:12 AM The best way to do this is to load the entire file into a variable and the search the string for whatever word you want ie. Open "test.html" for binary as #1 holdstring = input$(LOF(1), 1) If InStr(1, holdstring, "myword")then MsgBox "Found Word" else: MsgBox "Couldn't Find It" End If Close #1 just make sure that you give the full filename and path for the file when you open it. Hope this is of some help. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |