From: Damphyr Date: 2005-11-25T01:36:35+09:00 Subject: Re: Pickaxe tutorial section missing info on writing to files Gregory Brown wrote: > On 11/24/05, Damphyr wrote: > > >>You mean >> >>File.open("test.txt","w"){|f| >> f<<"Writing lot's of stuff to file" >>} > > > He did figure it out... by reading PLEAC. > > But don't you think in the two sections of the pickaxe about 'writing' > this simple line should have been shown? Don't know. I was going to say "Since Pickaxe includes the core Reference, this is technically documented" but then I looked at the aforementioned Pickaxe and the above three lines of code seem to be spread over 5 pages of Pickaxe (v2, p128-132) text, while ::File has no such example :). It's actually the second time I see someone asking this question. The first time I was taken aback, so that I didn't even ask if he meant the obvious :). That it is obvious is for me a sign that I'm too deep into Ruby and have forgotten the bad old days :). Oh happiness! Cheers, V.- -- http://www.braveworld.net/riva ____________________________________________________________________ http://www.freemail.gr - ������ �������� ������������ ������������. http://www.freemail.gr - free email service for the Greek-speaking.