cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/29/16:18:05

From: tonyblaha AT juno DOT com
To: djgpp AT delorie DOT com
Subject: how to search and replace a string
Message-ID: <19980829.152037.2271.4.tonyblaha@juno.com>
Date: Sat, 29 Aug 1998 16:17:07 EDT

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019