From: Glen Holcomb Date: 2009-07-17T00:58:16+09:00 Subject: uninitialized stream (IOError) --0016e6d999da25f3c1046ed4a302 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable So I'm getting an unexpected IOError in my code. class ConfigStub < File def initialize(location) unless filename =3D location.gsub("/", "_") raise ArgumentError, INVALID_LOCATION_FORMAT end @stub =3D File.open(CONFIG_PATH + filename, "w+") # This might need= to be more sophisticated depending on the rule end # initialize end # ConfigStub class class Directive def initialize(location) @sanity_checker =3D SanityChecker.new() @config_stub =3D ConfigStub.new(location) @directive =3D [""] @config_stub.each do |line| @directive << line end end # initialize . . . end # Directive class When it goes to execute the @config_stub.each do |line| section I get the following error: in `each': uninitialized stream (IOError) My Ruby version is as follows: ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux] What am I missing? -Glen --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --0016e6d999da25f3c1046ed4a302--