Class FileReader

File reader class.

Constructor Summary 

ConstructorDescription
FileReader(File)Constructs the reader.
FileReader(File, String)Constructs the reader.

Method Summary 

MethodDescription
close()Closes the reader.

Methods inherited from class Reader 

close, getLines, getString, read, read, readLine, readLines, readN, readString, ready, skip

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constructor Details 

FileReader(File) 

FileReader(file: File)

Constructs the reader.

To release system resources, close the reader by calling close().

Parameters:

  • file - the file object to read.

FileReader(File, String) 

FileReader(file: File, encoding: String)

Constructs the reader.

To release system resources, close the reader by calling close().

Parameters:

  • file - the file object to read.
  • encoding - the character encoding to use.

Method Details 

close() 

close(): void

Closes the reader.


DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!