Shows how to use xtd::environment::current_directory method.
#include <xtd/io/path>
#include <xtd/console>
#include <xtd/environment>
auto main() -> int {
environment::current_directory(environment::get_folder_path(environment::special_folder::desktop));
console::write_line("Directory entry: " + path::get_full_path("."));
}
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10