From: David Vallner Date: 2006-10-09T03:44:16+09:00 Subject: Re: how to concatenate all the lines into one string --------------enig704B06615D308C6BAA4889EA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Li Chen wrote: > I am new to Ruby. I just wonder how I can concatenate all the lines fro= m=20 > one file and let them become one string. >=20 File.read("/path/to/file") David Vallner --------------enig704B06615D308C6BAA4889EA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFKUcBy6MhrS8astoRApBuAJ9cotzVe72utRSxh+ZRWtTtwfdtPwCeLbmR GZaY4eVY8cPh3wlxvk9bv6E= =DLmU -----END PGP SIGNATURE----- --------------enig704B06615D308C6BAA4889EA--