⚠️ The annual cost of maintaining the server where this website is hosted, the domain, and keeping it up-to-date is approximately €3,000 per year. Help us with a small donation to cover these expenses. Support Now!

0 / 10000
dw.io
Class FileReader
Object
dw.io.Reader
dw.io.FileReader
File reader class.
Constructor Summary
FileReader(file : File)
Constructs the reader.
FileReader(file : File, encoding : String)
Constructs the reader.
Method Summary
close() : void
Closes the reader.
Methods inherited from class Reader
Constructor Detail
FileReader
public FileReader(file : File)
Constructs the reader.

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

Parameters:
file - the file object to read.

FileReader
public 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 Detail
close
close() : void
Closes the reader.