From: "Peña, Botp" Date: 2008-12-17T15:26:09+09:00 Subject: Re: ruby way of dumping file From: Joshua Ball [mailto:chezball@gmail.com] # 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. # # open(ARGV[0], 'rb') { |f| ... try, IO.read ARGV[0], 20