The classic first application "Hello, World!" with xtd::io::file and xtd::io::path classes.
#include <xtd/xtd>
auto main(int argc, char* argv[]) -> int {
auto file_name = path::combine(path::get_temp_path(), "hello_world.txt");
file::write_all_text(file_name, "Hello, World!");
console::write_line(file::read_all_text(file_name));
file::remove(file_name);
}
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