From: Phillip Gawlowski Date: 2008-04-09T12:45:54+09:00 Subject: Re: output of a method to file? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Zoe Phoenix wrote: | hmm, I see what you're doing there... | | I still can't seem to get the file block to actually write the output of | the method to a file. The file it writes still comes up empty... Are you explicitly calling the #write method? puts doesn't work (I fall for that trap 9 times out of 10), unfortunately. And are you opening the file in write / append mode? Are you getting any errors from Ruby? - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Each module should do one thing well. ~ - The Elements of Programming Style (Kernighan & Plaugher) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkf8O/gACgkQbtAgaoJTgL+dYQCfenNkS+BvQW72NyRc+Ofkuwcj GXMAnRjJFTwjBBihHeU+k/AhtSQZ7d2n =Mmvh -----END PGP SIGNATURE-----