Logan Capaldo wrote: > > The ! (pronounced bang usually) means that a method is a "dangerous" > version of a method with the same name. In this particular case it > means that it's the inplace version of gsub (global substitution). OK, thanks for the information and the pronounciation tip. But I still don't know how to edit a file while reading it. I've made further googling on the subject, and the only solutions I find are: - "read all, manipulate, write all", which doesn't seem very good with huge files - use -i options with ruby command line, but this seems to work only with files passed on the command line, which isn't my case. So, could somebody tell me if it's possible to update a file in ruby (except these two solutions)? -- Posted via http://www.ruby-forum.com/.