|
-
November 15th, 2001, 06:26 PM
#1
file i/o
Hi,
i want to open a file, search for a string, and replace the line in which the string is found, by another line of string.
how to do it?
please help
-
November 16th, 2001, 01:24 AM
#2
Re: file i/o
Open File, read it into buffer, replace data in buffer, then put all data in buffer into another file. Delete original one, then rename the new file with the old filename.
Please - rate answer if it helped you
It gives me inspiration when I see myself in the top list =)
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
[email protected] | ICQ:57404554 | http://soukhov.com
Russian Software Developer Network http://rsdn.ru
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|