xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Classes | Enumerations | Functions
xtd::io Namespace Reference

Definition

The xtd::io namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.

The xtd::io namespace contains types that allow top_directory_onlying and writing to files and data streams, and types that provide basic file and directory support.

Classes

class  binary_reader
 Reads primitive data types as binary values in a specific encoding. More...
 
class  binary_writer
 Writes primitive types in binary to a stream and supports writing strings. More...
 
class  directory
 Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  directory_info
 Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. More...
 
class  drive_info
 Provides access to information on a drive. More...
 
class  drive_not_found_exception
 The exception that is thrown when trying to access a drive or share that is not available. More...
 
class  end_of_stream_exception
 The exception that is thrown when reading is attempted past the end of a stream. More...
 
class  file
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  file_format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  file_info
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  file_load_exception
 The exception that is thrown when a managed assembly is found but cannot be loaded. More...
 
class  file_not_found_exception
 The exception that is thrown when an attempt to access a file that does not exist on disk fails. More...
 
class  file_system_info
 Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects. More...
 
class  io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  null_text_reader
 
class  null_text_writer
 Represents a null text writer. More...
 
class  path
 Performs operations on std::basic_string instances that contain file or directory path information. These operations are performed in a cross-platform manner. More...
 
class  path_too_long_exception
 The exception that is thrown when a path or file name is longer than the system-defined maximum length. More...
 
class  stream_reader
 Implements a xtd::io::text_reader that reads characters from a byte stream. More...
 
class  stream_writer
 Implements a xtd::io::text_writer for writing characters to a stream. More...
 
class  string_reader
 Implements a xtd::io::text_reader that reads from a string. More...
 
class  string_writer
 Implements a xtd::io::text_writer for writing characters to a string. More...
 
class  synchronized_text_reader
 Represents a synchronized text reader. More...
 
class  synchronized_text_writer
 Represents a synchronized text writer. More...
 
class  text_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  text_writer
 Represents a writer that can write a sequential series of characters. More...
 

Enumerations

enum  drive_type {
  drive_type::unknown,
  drive_type::no_root_directory,
  drive_type::removable,
  drive_type::fixed,
  drive_type::network,
  drive_type::cd_rom,
  drive_type::ram
}
 Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown. More...
 
enum  file_access {
  file_access::read = 0b1,
  file_access::write = 0b10,
  file_access::read_write = 0b11
}
 Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  file_attributes {
  file_attributes::read_only = 0x0001,
  file_attributes::hidden = 0x0002,
  file_attributes::system = 0x0004,
  file_attributes::directory = 0x0010,
  file_attributes::archive = 0x0020,
  file_attributes::device = 0x0040,
  file_attributes::normal = 0x0080,
  file_attributes::temporary = 0x0100,
  file_attributes::sparse_file = 0x0200,
  file_attributes::reparse_point = 0x0400,
  file_attributes::compressed = 0x0800,
  file_attributes::offline = 0x1000,
  file_attributes::not_content_indexed = 0x2000,
  file_attributes::encrypted = 0x4000
}
 Provides attributes for files and directories. More...
 
enum  search_option {
  search_option::top_directory_only = 0,
  search_option::all_directories = 1
}
 Specifies whether to search the current directory, or the current directory and all subdirectories. More...
 

Functions

std::ostream & operator<< (std::ostream &os, drive_type value)
 
std::wostream & operator<< (std::wostream &os, drive_type value)