#include <xtd/io/file_info>
#include <xtd/io/stream_reader>
#include <xtd/io/stream_writer>
#include <xtd/block_scope>
#include <xtd/console>
#include <xtd/startup>
class program {
public:
static auto main() {
auto path =
"MyTest.txt";
if (fi.exists())
fi.remove();
}
while (!sr.end_of_stream())
console::write_line(sr.read_line());
}
}
};
Performs operations on std::basic_string instances that contain file or directory path information....
Definition path.h:36
Implements a xtd::io::text_reader that reads characters from a byte stream.
Definition stream_reader.h:28
Implements a xtd::io::text_writer for writing characters to a stream.
Definition stream_writer.h:28
void write_line()
Writes new line to the text stream.
#define block_scope_(...)
The specified expression is cleared automatically when the scope is ended.
Definition block_scope.h:25