Class FileReader

File reader class.

ConstructorDescription
FileReader(File)Constructs the reader.
FileReader(File, String)Constructs the reader.
MethodDescription
close()Closes the reader.

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

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

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: 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.

close(): void

Closes the reader.