|
-
Jul 15th, 2002, 11:03 PM
#1
Replacing a line in a file
How can I open up a file, read it until it finds a certain line and then replace that one line with some other text.
What I was thinking was open up two files, one for reading and for writing and just basically copy that file except for that one line but this method is slow with a big file (which is what I'm going to be using). Anybody have a different method? Please reply if so.
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
|