Hi,
using C++ how can i check the presence of a folder in a drive.
The path of the folder is available in a std::string like std::string path = "C:\\TestFolder";
Please help.
Thanks
Dave
Printable View
Hi,
using C++ how can i check the presence of a folder in a drive.
The path of the folder is available in a std::string like std::string path = "C:\\TestFolder";
Please help.
Thanks
Dave
Here's a good reference page http://msdn.microsoft.com/en-us/library/2aza74he.aspx and in File Handling you can find http://msdn.microsoft.com/en-us/library/14h5k7ff.aspx
If you are looking for a cross-platform way to do this, have a look at the Boost Filesystem library.
could you say which mechanisam is more faster and reason behind these mechanisam for copy a folder from one location to other?
1. I am using 'xcopy' dos command
2. I am using file read and write method in <stdio.h>
Will cycle stealing DMA had any role in my first choice ?
Thanks
Dave