#include <xtd/xtd>
class program {
public:
static auto main() {
console::write_line("No search pattern returns:");
for (auto fi : di.get_files()) {
console::write_line(fi.name());
}
console::write_line();
console::write_line("Search pattern *2* returns:");
for (auto fi : di.get_files("*2*")) {
console::write_line(fi.name());
}
console::write_line();
console::write_line("Search pattern test?.txt returns:");
for (auto fi : di.get_files("test?.txt")) {
console::write_line(fi.name());
}
}
};
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories...
Definition directory_info.h:129
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10