Chikara
08-03-2007, 11:43 AM
I have an HTM file on my webserver that is automatically generated by a 3rd party program. Basically this file contains a lot of links.
example
<p><a href="2222.htm">2222</a></p>
<p><a href="2223.htm">2222</a></p>
<p><a href="2224.htm">2222</a></p>
I have a script that looks at the content of each of those htm files(2222.htm, 2223.htm.) If they are blank I want to be able to delete the file from the webserver and remove the link from the master htm file. Deleting the files is no problem. I'm having problems removing the link from the master htm file.
I attempt to open the master.htm file using a textstream. The problem is that I get a bad file mode error when I attempt to read and write things. Any ideas?
example
<p><a href="2222.htm">2222</a></p>
<p><a href="2223.htm">2222</a></p>
<p><a href="2224.htm">2222</a></p>
I have a script that looks at the content of each of those htm files(2222.htm, 2223.htm.) If they are blank I want to be able to delete the file from the webserver and remove the link from the master htm file. Deleting the files is no problem. I'm having problems removing the link from the master htm file.
I attempt to open the master.htm file using a textstream. The problem is that I get a bad file mode error when I attempt to read and write things. Any ideas?