Posted by Sleepless Snowman on July 29, 1999 at 13:17:54:
In Reply to: Proj3 - Reading Directories posted by Neil on July 29, 1999 at 13:10:27:
: I have been trying to get the test program to read
: from various directories and have been having trouble.
: It seems pretty random that sometimes when I enter a
: directory it works and sometimes it doesn't. For
: example if I enter the path "c:", "c:\download" or "e:" it
: works fine. However when I enter any directory on my F
: drive(where my program is located) including the root
: I only get results for the working directory. Does the
: path that you enter have to be in a specific format?
: Is there something that I am missing?
: Thanks for the help!!
If you didn't change his implementation of dir.h and dir.cpp, it should work fine.
if you try something like:
char DesiredRoot[2000];
DesiredRoot[0]='\0';
cin >> DesiredRoot;
Directory test = new Directory(DesiredRoot);
assuming you have done everything correctly, you would begin building your general tree at your "desired root."
cheers!