From: Fedor Labounko Date: 2007-01-08T03:04:39+09:00 Subject: Re: [QUIZ] Word Blender (#108) ------=_Part_54920_8362903.1168193073781 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > E:\ruby\programs\rubyquiz\quiz108\other submissions>ruby texttwistGame.rb > ./dict.rb:20:in `initialize': No such file or directory - > reducedwordlist3.txt ( > Errno::ENOENT) > from ./dict.rb:20:in `open' > from ./dict.rb:20:in `get_dict' > from texttwistGame.rb:37 > > fixed that, but then: > > E:\ruby\programs\rubyquiz\quiz108\other submissions>ruby texttwistGame.rb > texttwistGame.rb:17:in `pick_word': undefined method `delete_if' for > nil:NilClas > s (NoMethodError) > from texttwistGame.rb:38 > > I'm too tired to go bug hunting. Check out my submission crop.rb to see > how > I did the windows file writing. Now that I've submitted my program I'm > going back to sleep. :) Thanks Jason. It seems that the problem is that as long as a file by that name exists, Windows doesn't let me overwrite it. I'm using the FILE::CREAT flag but I don't think that should be causing this. It seems to be saying I don't have the permission to modify the file with ruby, though I haven't done much research into why that is so and how to fix it. ------=_Part_54920_8362903.1168193073781--