From: "Ralf Müller" Date: 2005-05-04T21:08:19+09:00 Subject: writing to a file with gsub! Hi, i simply want so change an existing file ram@lilith:~/src/ruby$cat test 123 wer --- 245545 hzrzu ---- 245 dfgdfh -- and i thought that irb(main):012:0> file = File.open('test'); file.each do |line| line.gsub!(/\d+/,'###') end would do this, because each iterates accross the file. But nothing is changed. Where are my mistakes?? Many Thanks Ralf