The readAllLines function is established to read all lines from a text file. The charset of the the text file will be detected automatically.
var txt=file.readAllLines("myFolder/myFile.txt");
Calling | Returning |
---|---|
file . readAllLines ( path ) | String |
Parameters | Type | Description |
---|---|---|
path | String | The relative text file path to the storage folder. |