Show how to use xtd::io::file_info::open method.
#include <xtd/xtd>
class program {
public:
static auto main() {
auto fi = file_info {path::combine(path::get_temp_path(), "MyTest.txt")};
if (!fi.exists()) {
sw.write_line("Hello");
sw.write_line("And");
sw.write_line("Welcome");
}
}
sw.write_line("This");
sw.write_line("is Extra");
sw.write_line("Text");
}
while (!sr.end_of_stream())
console::write_line(sr.read_line());
}
}
};
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168
#define block_scope_(...)
The specified expression is cleared automatically when the scope is ended.
Definition block_scope.hpp:25