From: ts Date: 2001-03-02T22:20:26+09:00 Subject: [ruby-talk:11897] Re: rewrite with Ruby >>>>> "M" == Max Ischenko writes: M> It works, but do not make changes to the file itself. Sorry, I've not understood. You can't make a modification to a file if you don't save the result, i.e. you must first open a new file, then * read a line * modify it * write the line to the new file * continue until you reach the end of the file This is what do the switch -i and -p in perl and ruby. Guy Decoux