C++ Language/Std/FilesystemAccess/Directories

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Concatenating drive, directory, filename, and extension strings into one long path string used to be done by _makepath(), but now the std::filesystem::path can do so more elegantly (using its / operator).

Some of the most common OS shell commands have C++ versions, such as _chdir(), _mkdir(), and _rmdir().

Additional information about directories