---
title: "System::IO namespace"
url: "https://reference.aspose.com/pdf/cpp/system.io/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use System::IO namespace in C++."
---




## Classes

| Class | Description |
| --- | --- |
| [BasicSTDIOStreamWrapper](./basicstdiostreamwrapper/) | Represents a [System.IO.Stream](./stream/)-like wrapper for std::basic_iostream and its derived objects. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [BasicSTDIStreamWrapper](./basicstdistreamwrapper/) | Represents a [System.IO.Stream](./stream/)-like wrapper for std::basic_istream and its derived objects. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [BasicSTDOStreamWrapper](./basicstdostreamwrapper/) | Represents a [System.IO.Stream](./stream/)-like wrapper for std::basic_ostream and its derived objects. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [BasicSystemIOStreamBuf](./basicsystemiostreambuf/) | Represents a buffer that wraps [System::IO::Stream](./stream/)-like streams and allows them to be used as an std::iostream-like streams internal buffer. |
| [BasicSystemIOStreamWrapper](./basicsystemiostreamwrapper/) | Represents a std::iostream-like wrapper that used [BasicSystemIOStreamBuf](./basicsystemiostreambuf/) as internal buffer. |
| [BasicSystemIStreamWrapper](./basicsystemistreamwrapper/) | Represents a std::istream-like wrapper that used [BasicSystemIOStreamBuf](./basicsystemiostreambuf/) as internal buffer. |
| [BasicSystemOStreamWrapper](./basicsystemostreamwrapper/) | Represents a std::ostream-like wrapper that used [BasicSystemIOStreamBuf](./basicsystemiostreambuf/) as internal buffer. |
| [BinaryReader](./binaryreader/) | Represents a reader that reads primitive data types as binary data in particular encoding. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [BinaryWriter](./binarywriter/) | Represents a writer that writes values of primitive types to a byte stream. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [BufferedStream](./bufferedstream/) | Adds a buffering layer on top of another stream. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [Directory](./directory/) | Contains methods for manipulating directories. This is a static type with no instance services. You should never create instances of it by any means. |
| [DirectoryInfo](./directoryinfo/) | Represents a file system path, a directory referred to by this path and provides instance methods for manipulating directories. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [File](./file/) | Provides methods for manipulating files. This is a static type with no instance services. You should never create instances of it by any means. |
| [FileInfo](./fileinfo/) | Represents a path to a file and a file referred to by this path and provides methods for manipulating it. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [FileStream](./filestream/) | Represents a file stream supporting synchronous and asynchronous read and write operations. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [FileSystemInfo](./filesysteminfo/) | The base class for [FileInfo](./fileinfo/) and [DirectoryInfo](./directoryinfo/). Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [FileSystemInfoStat](./filesysteminfostat/) | Represents information about a file or directory. |
| [MemoryStream](./memorystream/) | Represents a stream that reads from and writes to memory. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [Path](./path/) | Provides methods for manipulating paths. This is a static type with no instance services. You should never create instances of it by any means. |
| [STDIOStreamWrapperBase](./stdiostreamwrapperbase/) | Represents a base class for [System.IO.Stream](./stream/)-like wrappers. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [Stream](./stream/) | A base class for a variety of stream implementations. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [StreamReader](./streamreader/) | Represents a reader that reads characters from a byte stream. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [StreamWriter](./streamwriter/) | Represents a writer that writes characters to a byte stream. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [StringReader](./stringreader/) | Represents a reader that reads characters from a string. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [StringWriter](./stringwriter/) | Implements a [TextWriter](./textwriter/) that writes information to a string. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [TextReader](./textreader/) | A base class for classes that represent readers that read sequences of characters from different sources. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [TextWriter](./textwriter/) | A base class for classes that represent writers that writes sequences of characters to different destinations. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
| [UnmanagedMemoryStream](./unmanagedmemorystream/) | Provides access to unmanaged memory. Objects of this class should only be allocated using [System::MakeObject()](../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../system/smartptr/) pointer and use this pointer to pass it to functions as argument. |
## Enums

| Enum | Description |
| --- | --- |
| [FileAccess](./fileaccess/) | Specifies the type of access when opening the file. |
| [FileAttributes](./fileattributes/) | Represents attributes of a directory or a file. |
| [FileMode](./filemode/) | Specifies how a file should be opened. |
| [FileOptions](./fileoptions/) | Represents advanced options for creating [FileStream](./filestream/) object. |
| [FileShare](./fileshare/) | Specifies what kind of access other [FileStream](./filestream/) objects can have to a file being opened. |
| [SearchOption](./searchoption/) | Specifies a search should be performed only in the current directory, or in the current directory and all its subdirectories. |
| [SeekOrigin](./seekorigin/) | Specifies the reference position in the stream relative to which the position to seek to is specified. |
| [STDIOStreamPositionPreference](./stdiostreampositionpreference/) | Determines which position in the stream is preferable as a common read and write position when std::basic_iostream and its descendants will have different read and write positions at the time of wrapper creation. |
| [STDIOStreamWrappingMode](./stdiostreamwrappingmode/) | Specifies the mode of I/O operations that wrappers will perform on std::iostreams-like streams. |
| [SystemIOStreamWrappingMode](./systemiostreamwrappingmode/) | Specifies the mode of I/O operations that wrappers will perform on [System::IO::Stream](./stream/)-like streams. |
## Typedefs

| Typedef | Description |
| --- | --- |
| [BinaryWriterPtr](./binarywriterptr/) | An alias for a shared pointer to this class. |
| [FileNotFoundException](./filenotfoundexception/) | The exception that is thrown when an attempt to access a file that does not exist on disk fails. Never wrap the [FileNotFoundException](./filenotfoundexception/) class instances into [System::SmartPtr](../system/smartptr/). |
| [IsTemplateBaseOf](./istemplatebaseof/) | Represents std::is_base_of<Base, Derived> counterpart that determine the inheritance of not instantiated Base template class from instantiated Derived template class. Will fail with multiple inheritance or non-public inheritance from Base. |
| [STDIOStreamWrapper](./stdiostreamwrapper/) | Specializations of [BasicSTDIOStreamWrapper](./basicstdiostreamwrapper/) for char character types. |
| [STDIStreamWrapper](./stdistreamwrapper/) | Specializations of [BasicSTDIStreamWrapper](./basicstdistreamwrapper/) for char character types. |
| [STDOStreamWrapper](./stdostreamwrapper/) | Specializations of [BasicSTDOStreamWrapper](./basicstdostreamwrapper/) for char character types. |
| [STDWIOStreamWrapper](./stdwiostreamwrapper/) | Specializations of [BasicSTDIOStreamWrapper](./basicstdiostreamwrapper/) for wchar_t character types. |
| [STDWIStreamWrapper](./stdwistreamwrapper/) | Specializations of [BasicSTDIStreamWrapper](./basicstdistreamwrapper/) for wchar_t character types. |
| [STDWOStreamWrapper](./stdwostreamwrapper/) | Specializations of [BasicSTDOStreamWrapper](./basicstdostreamwrapper/) for wchar_t character types. |
| [SystemIOStreamWrapper](./systemiostreamwrapper/) | Specializations of [BasicSystemIOStreamWrapper](./basicsystemiostreamwrapper/) for char character types. |
| [SystemIStreamWrapper](./systemistreamwrapper/) | Specializations of [BasicSystemIStreamWrapper](./basicsystemistreamwrapper/) for char character types. |
| [SystemOStreamWrapper](./systemostreamwrapper/) | Specializations of [BasicSystemOStreamWrapper](./basicsystemostreamwrapper/) for char character types. |
| [SystemWIOStreamWrapper](./systemwiostreamwrapper/) | Specializations of [BasicSystemIOStreamWrapper](./basicsystemiostreamwrapper/) for wchar_t character types. |
| [SystemWIStreamWrapper](./systemwistreamwrapper/) | Specializations of [BasicSystemIStreamWrapper](./basicsystemistreamwrapper/) for wchar_t character types. |
| [SystemWOStreamWrapper](./systemwostreamwrapper/) | Specializations of [BasicSystemOStreamWrapper](./basicsystemostreamwrapper/) for wchar_t character types. |
## Functions

| Function | Description |
| --- | --- |
| WrapSTDIOStream | System.Collections.Generic.List`1[Doxygen2HugoConverter.Markup.SimpleMarkupEntry] |
| WrapSTDIOStream | System.Collections.Generic.List`1[Doxygen2HugoConverter.Markup.SimpleMarkupEntry] |
| WrapSTDIOStream | System.Collections.Generic.List`1[Doxygen2HugoConverter.Markup.SimpleMarkupEntry] |
