Nodebook
These are the default methods for the class "Nodebook."
Usage
Nodebook
Nodebook has a default class in case you want to edit files that do not have their own custom formatting.
Setup
fileName(options)
object options
:
options.lower
- Whether or not the name should be turned to lower case.
Return: The file name.
resetFile()
Resets the file.
deleteFile(delay)
Deletes the file
number delay
: Sets how many seconds before deleting the file.
fetchLine(line)
Fetches an existing line's content.
number line
: The line number to get the information from.
Return: The line content.
deleteLine(line)
Sets an existing line in the file to empty.
number line
: The line number to make empty.
editLine(line, key)
Replaces an existing line with a new string.
number line
: The line number to set it to.
string key
: The string that will replace the line.
addLine(key)
Adds a string at the next available line in the file.
string key
: The string to add at the next available line.
content()
Returns the file's content into a string.
Last updated