System::IO::FileStream::FileStream constructor

FileStream::FileStream(const FileStream&) constructor

System::IO::FileStream::FileStream(const FileStream &)=delete

See Also

FileStream::FileStream(const String&, FileMode) constructor

Constructs a new instance of FileStream class and initializes it with the specified parameters.

System::IO::FileStream::FileStream(const String &path, FileMode mode)
ParameterTypeDescription
pathconst String&The path of the file to open.
modeFileModeSpecifies the mode in which to open the file.

See Also

FileStream::FileStream(const String&, FileMode, FileAccess, FileShare, int32_t, bool) constructor

Constructs a new instance of FileStream class and initializes it with the specified parameters.

System::IO::FileStream::FileStream(const String &path, FileMode mode, FileAccess access, FileShare share, int32_t buffer_size, bool useAsync)
ParameterTypeDescription
pathconst String&The path of the file to open.
modeFileModeSpecifies the mode in which to open the file.
accessFileAccessThe requested access type.
shareFileShareThe type of access that other FileStream objects have to the opened file.
buffer_sizeint32_tThe number of bytes bufferred during read and write operations.
useAsyncboolSpecifies whether to use asynchronous I/O or synchronous I/O.

Remarks

The underlying operating system might not support asynchronous I/O.

See Also

FileStream::FileStream(const String&, FileMode, FileAccess, FileShare, int32_t, FileOptions) constructor

Constructs a new instance of FileStream class and initializes it with the specified parameters.

System::IO::FileStream::FileStream(const String &path, FileMode mode, FileAccess access, FileShare share=FileShare::Read, int32_t buffer_size=DefaultBufferSize, FileOptions options=FileOptions::SequentialScan)
ParameterTypeDescription
pathconst String&The path of the file to open.
modeFileModeSpecifies the mode in which to open the file.
accessFileAccessThe requested access type.
shareFileShareThe type of access that other FileStream objects have to the opened file.
buffer_sizeint32_tThe number of bytes bufferred during read and write operations.
optionsFileOptionsAdditional options.

See Also