Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ delete directory

#include <filesystem>
std::filesystem::remove("myEmptyDirectoryOrFile"); // Deletes empty directories or single files.
std::filesystem::remove_all("myDirectory"); // Deletes one or more files recursively.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #directory
ADD COMMENT
Topic
Name
9+7 =