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
Printable View
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
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