From: Dominik Honnef Date: 2008-01-31T01:38:05+09:00 Subject: Re: newbie file write problem On [Wed, 30.01.2008 23:59], Lars Zeb wrote: > Morton, > > Thanks for the input, but if I change from "f.puts s" to "f s" there > is an error: > NoMethodError: undefined method `f' for main:Object > > Where can I find documentation on Ruby? I can't find anything on the > puts method of the File class, or what method I could use to direct > the string "s" to the file object. > > Lars You should remove the puts in the get_sql function, not the f.puts call. -- Dominik Honnef