From: "Suraj N. Kurapati" Date: 2006-08-16T07:16:14+09:00 Subject: Re: Reading in files, keeping *ALL* info from file -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sylvain Joyeux wrote: > data = File.open(ARGV[0]) do |file| > file.read > end > puts data.inspect This code can be shortened as thus: p ARGF.read -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFE4kcnmV9O7RYnKMcRAs5dAJ475eHEz7BmrL+qVQP2f3OE2Y6IkQCgmae8 LO7exDURrnYncZQ17UOQjHs= =Qn+B -----END PGP SIGNATURE-----