in reply to Parsing each file of a directory to change once string instance to another

You opened the file for reading but you're trying to write to it too!

You need to write your data out to another file.

metadoktor

"The doktor is in."

  • Comment on Re: Parsing each file of a directory to change once string instance to another

Replies are listed 'Best First'.
Re: Re: Parsing each file of a directory to change once string instance to another
by z28 (Sexton) on Mar 20, 2002 at 22:02 UTC
    Ah! I want to write to the same file that I just opened. Is this possible?