开发者

remove directory in c++

开发者 https://www.devze.com 2022-12-19 14:59 出处:网络
how to remove a entire directory i开发者_JS百科n c++ There isn\'t a standard way of manipulating the filesystem in C++, so you will have to use system specific code or use a wrapper around it. For exa

how to remove a entire directory i开发者_JS百科n c++


There isn't a standard way of manipulating the filesystem in C++, so you will have to use system specific code or use a wrapper around it. For example, Boost.Filesystem.

As you indicated you are using Windows you could use the Win32 API however it is a a C API rather than a C++ API which means it is slightly more complex to use from C++. As it is Windows specific it won't work on other operating systems. In my opinion the API is not as well designed as Boost.Filesystem.


See this code snippet.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号