OpenRead()

File::OpenRead(const String&) method

Opens the specified file for reading only, in ‘Open’ mode with shared access for reading.

static FileStreamPtr System::IO::File::OpenRead(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path of the file to open

Return Value

A FileStream object associated with the opened file

See Also