From: Maik Schmidt Date: 2003-12-24T18:06:55+09:00 Subject: Re: Slurping a file like in Perl Xeno Campanoli wrote: > I want to slurp up two files and substitute one file in another for a symbol > in that file's data. In Perl I may simply do this all in memory. Is there a > limit in Ruby string size that prevents this, or is there an easier more elegant > way about it? Thanks There was a very interesting article about file slurping on perl.com some weeks ago: http://www.perl.com/lpt/a/2003/11/21/slurp.html. Maybe you can benefit from it, because the IO functions that were used are also available in Ruby. At least you should benefit from the test suite. I thought about porting this to Ruby but currently I am a bit short of time. Maybe you want to try it? Merry christmas,