Reads the whole file at path as UTF-8 text; throws when it cannot be read.
path
Reads the whole file at a path, or from an open file descriptor, as raw bytes with no decoding; throws when it cannot be read.
Reads the whole file at
pathas UTF-8 text; throws when it cannot be read.