aggy
November 15th, 2001, 05:26 PM
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
Igor Soukhov
November 16th, 2001, 12:24 AM
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)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com
Russian Software Developer Network http://rsdn.ru