11 May
2008
11 May
'08
10:35 p.m.
Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; using namespace std;
int main(int argc, char* argv[]) { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm, I created a folder C:\ddd\ccc and ran your code exactly as it is. The result: C:\ddd\cccis So it works! (and your missing a newline in your output) Is I: a network drive? If so, have you verified that it is connected? -- John