Mail Archives: djgpp/1998/08/29/16:18:05
How can I search for a string in a text file and replace it once I find
it?
What I want to do is search for this string in the windows 3.1 win.ini
file:
Wallpaper=filename.bmp
And change it to another filename... But since "filename.bmp" could be
anything, how do I search for this string? Basically, I'd need to search
for "Wallpaper=" and then change the entire line to something else.
Any code examples would be greatly appreciated.
TIA,
Tony Blaha
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
- Raw text -