xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Classes | Enumerations
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.

Classes

class  directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. 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::ftream 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_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  io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  null_text_reader
 Represents a null text reader. More...
 
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
 Represents a reader that can read a sequential series of characters. More...
 
class  stream_writer
 Represents a writer that can write a sequential series of characters. More...
 
class  string_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  string_writer
 Represents a writer that can write a sequential series of characters. 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  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 fllags 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...