From: Peter Bailey Date: 2007-01-17T04:23:42+09:00 Subject: Re: Simple editing. Works in IRB; not as script. > > Those aren't parentheses, they're braces, which means you're passing a > block > to it. > You have to use ( instead of { . > > contents= File.read("test1.txt") Yes, I'm an idiot. Thank you very much. I need really big glasses. -- Posted via http://www.ruby-forum.com/.