
3 Mar
2009
3 Mar
'09
5:48 p.m.
2009/3/3 Sean Farrow <sean.farrow@seanfarrow.co.uk>:
I have a boost::filesystem::wpath object. I need to firstly check if the file exists, and secondly delete and check the file has been deleted. How would I go about this? I've loked at the reference and carn't seem to make sense, are thee any examples of both these functions?
Check the reference again: http://www.boost.org/doc/libs/1_38_0/libs/filesystem/doc/reference.html#Oper... #include <boost/filesystem.hpp> int main(int argc, char *argv[]) { boost::filesystem::wpath file(L"file.txt"); if(boost::filesystem::exists(file)) boost::filesystem::remove(file); } -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3