From: Peter Bailey Date: 2007-01-17T04:07:29+09:00 Subject: Re: Simple editing. Works in IRB; not as script. Tamreen Khan wrote: > On 1/16/07, James Edward Gray II wrote: >> >> 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. I don't understand. My line says this: contents = File.read{"test1.txt"} I'm using parentheses, no block. I've done this in a number of other scripts, and, they work fine. -- Posted via http://www.ruby-forum.com/.