Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 750 Bytes

file.readAllLines.md

File metadata and controls

24 lines (18 loc) · 750 Bytes

file.readAllLines

The readAllLines function is established to read all lines from a text file.

Sample

var txt=file.readAllLines("myFolder/myFile.txt");
var txt=file.readAllLines("myFolder/myFile.txt", "UTF-8");

API

CallingReturning
file . readAllLines ( path )String
file . readAllLines ( path, encoding )String
ParametersTypeDescription
pathStringThe relative text file path to the storage folder.
encodingStringThe charset name of the text file. The default value is UTF-8;