M
mlt
Is there some function where I can check that a path to file is correct
(that the file exists)?
(that the file exists)?
Is there some function where I can check that a path to file is correct
(that the file exists)?
mlt said:Ok so no hints for this on windows Vista 64 bit?
mlt said:Ok so no hints for this on windows Vista 64 bit?
Is there some function where I can check that a path to file is correct
(that the file exists)?
On 2009-02-01 21:17, mlt wrote:
There is not standard C++ function for this, you will have to
use a platform specific function. Try asking an a group
discussing programming on your platform.
Says who? fopen() is declared in <cstdio>.Andy said:I could give you several ways, all of which are clumsy, and none of them
Vista64 specific (work on all windows)
You could always use fopen - but that's C, not C++, and off-topic for
this group.
Andy said:I could give you several ways, all of which are clumsy, and none of them
Vista64 specific (work on all windows)
You could always use fopen - but that's C, not C++, and off-topic for
this group.
TR2.Erik said:There is not standard C++ function for this, you will have to use a
platform specific function. Try asking an a group discussing programming
on your platform.
It seems that:
String test = "../../test/test.txt"
if ( !boost::filesystem::exists( test )) {
std::cout << "Script file NOT found!\n";
}
only works if I specify the whole path to test.txt and not just the relative
path. Is there some way to make the call work for relative paths?
Erik Wikström said:There is not standard C++ function for this, you will have to use a
platform specific function. Try asking an a group discussing programming
on your platform.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.