I want to read files that are in one directory, but the directory has another directory that has information that I also need to read. Anyone has an idea of how I can do that? Here's my directory tree
Root
|__code
|__ file.rb (where I am working from)
|__Directory
|__file 1
|__file 2
|__Directory 2
|__file 3
|__file 4
I'm using File.open("file1", "r") to open the files.
Directory. Did you try, for example,File.open("Directory2/file3", "r")?Root/Directory/Directory2/file3.File.open("file1", "r")won't necessarily work either. You'll need to work with a more explicit path.