From: Matthew Margolis Date: 2004-08-05T09:46:53+09:00 Subject: open files in other directories I am trying to figure out how to open up a text file in a subdirectory of my programs main directory. The file I want is in the subdirectory labeled text. I get a "Permission denied - text/" message when attempting to run the code found below. campershash = Hash.new Dir.entries("text").each do |textfilename| campershash["#{textfilename.chop.chop.chop.chop}"] = File.open("text/" + "#{textfilename}") { |f| f.gets(nil) } end The Dir.entries call works finer but on the next line when I go to open up each text file in the text directory I run into problems. I am running the program on windows XP with administrator privileges so I am unclear as to why I am having permission issues. Any and all help is greatly appreciated, Matthew Margolis