fs.lines

fs.lines

fs.lines

Function

Read a text file line by line.

Syntax

Parameters

No parameters.

Return value

TypeDescription
ArrayReturns an array of strings, each element is a line of text.

Example

Notes

  • Line breaks are not included in the returned line text.