Synopsis Read the contents of a location and return it as string value.
Function str readFileEnc(loc file, str charset) throws PathNotFound(loc file), IO(str msg)
Usage import IO;
Description Return the contents (decoded using the Character set supplied) of a file location as a single string. Also see readFileLinesEnc.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit