![]() |
|
Navigation |
Synopsis Read the contents of a file location and return it as a list of strings.
Function
list[str] readFileLines(loc file) throws PathNotFound(loc file), IO(str msg)
Usage
import IO;
Description Return the contents of a file location as a list of lines.
Also see readFile.
EncodingLook at readFile to understand how this function chooses the character set. If you know the character set used, please use readFileLinesEnc.
Pitfalls
![]() |