thendal
Programmer
- Aug 23, 2000
- 284
Guys !
How to find a particular text in a file and replace it with another one.
I have a html file in which i have to replace a particular text XXXX with YYYY.
Html file:
<html>
<head>
<title>test</title>
</head>
<body>
XXXX
</body>
</html>
Whether i need to read whole file and when that particular text apperars i have to replace with the new one and then rewrite the whole file with the replaced one.
Is there any shorter way other than this.
Regx Gurus help me.
;-)
[sig][/sig]
How to find a particular text in a file and replace it with another one.
I have a html file in which i have to replace a particular text XXXX with YYYY.
Html file:
<html>
<head>
<title>test</title>
</head>
<body>
XXXX
</body>
</html>
Whether i need to read whole file and when that particular text apperars i have to replace with the new one and then rewrite the whole file with the replaced one.
Is there any shorter way other than this.
Regx Gurus help me.
;-)
[sig][/sig]