in reply to Re: Re: Make a copy of a line and add it back to the same file
in thread Make a copy of a line and add it back to the same file

the_pusher_robot: Basically Iam reading a bunch of lines from a file. One of the line looks like: cdsadmin -t -O :c:\data"; I want to make a copy of this line, then change the the "-t" to "-d" in the copy. I then want to add this new line(copy) back to the file. The file now contains the original lines plus the new one.
  • Comment on Re: Re: Re: Make a copy of a line and add it back to the same file

Replies are listed 'Best First'.
Re: Re: Re: Re: Make a copy of a line and add it back to the same file
by the pusher robot (Monk) on Aug 26, 2002 at 23:13 UTC
    ah, I see. In that case, don't use my solution :-)