Class: StreamReader

StreamReader

Stream reader for a text file.

Constructor

new StreamReader(filename)

Parameters:
Name Type Description
filename String name of the text file to open.
Source:
Throws:
when the filename is falsy value or when failed to open file.
Type
Error

Extends

Methods

Close()

Close current text stream.
Source:

ReadAll() → {String}

Read all lines from text file.
Source:
Returns:
all text of a file.
Type
String

ReadLine() → {String}

Read 1 line from text file and forward cursor.
Source:
Returns:
text of a line.
Type
String