------ art_16421_27330407.1168467144533 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/10/07, James Edward Gray II <james / grayproductions.net> wrote: > Well, you pass open() three arguments: > > File.open("reducedwordlist#{i}.txt", "w", File::CREAT) do |fout| > > I'm pretty sure that form has the third argument being the > permissions of the new file. Take out the File::CREAT, the "w" mode > string handles that automatically, and see if that fixes it up. > > Hope that helps. > > James Edward Gray II > > > Aah, thanks so much. I must have misread that before, never noticed the bit about permissions. I tried changing that line before but it still didn't work since I was trying to modify the file I created with the weird permission (whatever permission option File::CREAT would be interpreted as). Erasing and starting over it all works as expected, creating and overwriting the file on subsequent calls. Thanks! ------ art_16421_27330407.1168467144533--