From: Gavin Sinclair Date: 2005-12-02T21:42:32+09:00 Subject: Re: rio-editing on-the-fly Wybo Dekker wrote: > > > You're not reading the file. Try > > > > rio('/etc/passwd').read.gsub(/wybo/,'XXXX') > rio('new') > > that helped indeed, thanks, but is it not in contradiction to rio's > description of sub?: > > sub(re,string) > > Create a new Rio referencing the result of applying String#sub to the > value returned by Rio#to_s. So: Now you've just gotta double check what Rio#to_s does :) Gavin