Group: comp.lang.ruby
From: 7stud --
Date: Monday, February 18, 2008 12:55 AM
Subject: Re: Help with Writing Replacement Text to Files

Jeremy McAnally wrote:
> Try this:
>
> File.open("config.txt", "rw") do |f|
>

File.open('data.text', 'rw') do |f|
end

--output:--
r1test.rb:1:in `initialize': illegal access mode rw (ArgumentError)
from r1test.rb:1:in `open'
from r1test.rb:1
--
Posted via http://www.ruby-forum.com/.