Class: TextFile

@bldr/songbook-intermediate-files~TextFile

A text file.

new TextFile (path)

Name Type Description
path string

The path of the text file.

Members

path string

The path of the text file.

Methods

append (content)

Append content to the text file.

Name Type Description
content string

Content to append to the text file.

flush ()

Delete the content of the text file, not the text file itself.

read ()string

Read the whole text file.

Returns:
Type Description
string

remove ()

Remove the text file.