Thnanks for your reply. However, from the reference website, it seems that I cannot add or delete the contents from the file.
I have tried out a way, but it's quite troublesome.
I put each content that I wish to modify in a new line, like below:
<html>
<head><title>bla</title></head>
<body>
bla bla bla <! -- contents wish to modify -->
<table>
<tr><td>tit tit tit</td></tr>
<tr><td>
bla bla bla <! -- contents wish to modify -->
</td></tr>
</table>
<p>
bla bla bla <! -- contents wish to modify -->
</p>
</body>
</html>
In asp file(eg: bla.asp), I retrieve line by line from bla.htm into a string variable. By the time I retrieve into the var, I do modification on 'bla bla bla', then only save into the var. After all, I overwrite everything in the var into bla.htm again.
I have tried, and it works, but I have to maintain the order of the contents in bla.htm, or else everything will be mess up.
regrads, Jaleen
Quote:
|
Originally Posted by protecweb
|