Show how to use xtd::io::drive_info class.
#include <xtd/io/drive_info>
#include <xtd/console>
#include <xtd/startup>
class program {
public:
static auto main() {
for (
auto d : all_drives) {
if (
d.is_ready() ==
true) {
}
}
}
};
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static xtd::array< xtd::io::drive_info > get_drives() noexcept
Retrieves the drive names of all logical drives on a computer.
#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
@ d
The D key.
Definition console_key.hpp:94
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8