Overview | Methods | This Package | All Packages
Creates a TextReader object.
Syntax
public TextReader( IByteStream stream )
public TextReader( IByteStream stream, int codePage )
public TextReader( IByteStream stream, int codePage, int bufferSize )
public TextReader( String path )
public TextReader( String path, int codePage )
public TextReader( String path, int codePage, int bufferSize )
Parameters
stream
The IByteStream object to read from.
codePage
The code page to use when converting input characters to Unicode. This parameter must be a value from the CodePage enumeration or the identifier of a code page that is supported by the system. If no code page is specified, the American National Standards Institute (ANSI) code page is used.
bufferSize
The input buffer size in characters. If no value is specified for this parameter, the buffer size is set to 1024 characters.
path
The name of an existing file to open.