From: Tamreen Khan Date: 2007-01-17T04:00:06+09:00 Subject: Re: Simple editing. Works in IRB; not as script. ------=_Part_60358_6142516.1168974003549 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/16/07, James Edward Gray II wrote: > > On Jan 16, 2007, at 11:39 AM, Peter Bailey wrote: > > > James Gray wrote: > >> On Jan 16, 2007, at 11:24 AM, Peter Bailey wrote: > >> > >>> contents = File.read{"test1.txt"} > >> > >> That's a typo. You want (...) instead of {...}. > >> > >> James Edward Gray II > > > > Duh, sorry James, but, I don't see what you mean. I don't have any > > (...) > > data in there. The test file I made is named "test1.txt.") You need to pass File.read a simple method argument, which goes inside parentheses, you don't need a block. ------=_Part_60358_6142516.1168974003549--