From: The Higgs bozo Date: 2008-12-17T14:42:34+09:00 Subject: Re: ruby way of dumping file Joshua Ball wrote: > Hi, > Can someone give me a cleaner, more rubyesque (even correct) way of > printing > out the first 20 bytes of a file? My solution doesn't feel right. print File.read(ARGV.first)[0...20] -- Posted via http://www.ruby-forum.com/.