Oh, I see. In order to do that' you need to get the text from the file into a string, here's how you can load from and save to a string. Both bits of code assume that sString is declared someplace else.

VB Code:
  1. 'Loading the text from the file
  2. Dim FileNum As Long
  3. FileNum = FreeFile
  4. Open "c:\test.htm" For Input As FileNum
  5. sString = Input(LOF(FileNum), FileNum)
  6. Close FileNum
  7.  
  8. 'Saving the text to the file
  9. Dim FileNum As Long
  10. FileNum = FreeFile
  11. Open "c:\test.htm" For Output As FileNum
  12. Print #FileNum, sString;
  13. Close FileNum
By the way, if any of you are wondering why there's a semicolon at the end of one of the lines in the saving code, it's so the Print statement doesn't stick a newline at the end of the file.


I can post some code to strip off all the tags, but I don't see how it'd be useful. Do you know about the string manipulation functions VB provides? Basically, you gotta get creative with those.

I'll put together some code to strip off the tags right now, just as an example...