xtd 0.2.0
Loading...
Searching...
No Matches
environment_current_directory.cpp

Shows how to use xtd::environment::current_directory method.

#include <xtd/io/path>
#include <xtd/console>
#include <xtd/environment>
using namespace xtd;
using namespace xtd::io;
auto main() -> int {
environment::current_directory(environment::get_folder_path(environment::special_folder::desktop));
console::write_line("Directory entry: " + path::get_full_path("."));
}
// This code produces the following output :
//
// Directory entry: /!---OMITTED---!/Desktop
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