Click or drag to resize

FileOpenRead Method

Opens an existing file for reading.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static FileStream OpenRead(
	string fileToRead
)

Parameters

fileToRead  String
The file to be opened for reading.

Return Value

FileStream
A read-only stream on the specified path.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid destination directory.
SecurityExceptionThe user does not have the required permissions.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also