|
-
February 2nd, 2000, 02:24 AM
#1
Urgent! How to find a word in html or text files?
How to find a word in html or text file
-
February 2nd, 2000, 08:05 PM
#2
Re: Urgent! How to find a word in html or text files?
Usually you can use the INSTR (In String) function to locate a specific string, including entire words or phrases.
-
February 3rd, 2000, 05:12 AM
#3
Re: Urgent! How to find a word in html or text files?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|