Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 595 Bytes

file.readAllLines.md

File metadata and controls

22 lines (16 loc) · 595 Bytes

file.readAllLines

The readAllLines function is used 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

Calling Returning
file. readAllLines ( path ) String
file. readAllLines ( path, encoding ) String
Parameters Type Description
path String The relative text file path to the storage folder.
encoding String The charset name of the text file. The default value is UTF-8.