Thread: Vb And Html
View Single Post
Old Sep 8th, 2004, 11:11 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
The text box doesn't search the file - your code does.

First, open the file for reading. Then parse it, line by line, into a string array, checking each one for the starting comment as you go. When you reach the comments, make a note of the line number. Then parse the bits between the comments, but don't save it into the array. When you reach the ending comment, start saving it again, until you reach the end of the file.

Next, open the file for output. Until you get to the comment (you stored the line number earlier), just output the string line by line. When you do, output the stuff you want. Then send the bottom bit (the ending comment onwards). And voila! You're done!

I realise you might not know how to do some (or any) of this. If there's anything you need help with, please post back.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote