Click or drag to resize

StreamReader(String, Boolean) Constructor

Initializes a new instance of the CrestronIO.StreamReader class for the specified file name, with the specified byte order mark detection option.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public StreamReader(
	string path,
	bool detectEncodingFromByteOrderMarks
)

Parameters

path  String
The complete file path to be read.
detectEncodingFromByteOrderMarks  Boolean
Indicates whether to look for byte order marks at the beginning of the file.
Exceptions
ExceptionCondition
ArgumentException path is an empty string ("").
ArgumentNullException path is null.
FileNotFoundException The file cannot be found.
DirectoryNotFoundException The specified path is invalid, such as being on an unmapped drive.
IOException path includes an incorrect or invalid syntax for file name, directory name, or volume label.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also