Initializes and returns a new instance of reader class with file name and reading mode setting option.
new reader(string fullPath, bool readOnly)
|string||fullPath||The complete file path.|
|bool||readOnly||A value that indicates reading mode.|
|reader||An instance that was initialized by specified value.|
reader r = new reader("c:\somewhere...\sample.txt", true);
It's a wrapper of the System.IO.StreamReader.StreamReader(String,Encoding) constructor. changed in ver 22.214.171.124
The Encoding is UTF-8.
You can specify detection of the Unicode byte order mark(BOM) with second argument. changed in ver 126.96.36.199
If true, detects a Unicode byte order mark(BOM). Otherwise, does nothing. changed in ver 188.8.131.52
You can specify the reading mode with second argument.
If true, open the file in Read Only mode. In this case, no exception occurs even if the file is opened by another process.
If false, an exception will occur if the file is open in another process.
The meaning of the second argument has been changed in Rtype.Reader.dll Ver 184.108.40.206.
Links for reference