xtd
0.2.0
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
Generated on Mon Oct 9 2023 14:41:56 for xtd by
Gammasoft
. All rights reserved.