Home Cooker Classes Others Rice CookerGX
Classes  >  reader  >  reader(string,int)
reader class : reader(string,int) fitter

Description

Initializes a new instance of reader type for the specified file name, with the specified encoding.

Syntax

new reader(string fullPath, int codePageID)

Arguments

ClassNameDescription
stringfullPathThe complete file path.
intcodePageIDA code page identifier.

Return value

ClassDescription
readerA reader type instance that was initialized by specified value.

Sample code

reader readerInstance = new reader("c:\Users\....\tagget.txt", 932);//shift_jis

Notes

It's a wrapper of the System.IO.StreamReader.StreamReader(String,Encoding,Boolean).

You can specify the encoding with second argument. The encoding will be specified by code page identifier

Does not detect a Unicode byte order mark(BOM).

Links for reference

Copyright © Rice All rights reserved.