|
-
September 27th, 2004, 11:39 PM
#3
Re: replace word
Another option is to use the external utility sed. It's been ported to nearly everything. If you haven't used sed, you haven't lived.
Another is to read the whole file in, replacing as you go, and then write it back out. This is probably identical to using a temp file for small files.
Jeff
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
|