From: Joel VanderWerf Date: 2004-01-27T04:38:03+09:00 Subject: Re: Regurgitating the contents of a file Josef 'Jupp' SCHUGT wrote: > Hi! > > * Joel VanderWerf: > >>Philip Mak wrote: >> >>>What's the shortest way to regurgitate the contents of a file? I mean >>>like this: >> >>puts File.read("filename.txt") > > > AFAIK that reads the whole file to memory while It certainly does. But the OP did say "shortest" ;-)