FileStream()

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)

Arguments

ParameterTypeDescription
pathconst String&The path of the file to open.
modeFileModeSpecifies the mode in which to open the file.

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)

Arguments

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.

FileStream::FileStream(const FileStream&) constructor

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

See Also