hou.readFile function
Read a file, returning the contents in a string. Supports regular files, opdef: and oplib: paths, and http URLs.
Usage
readFile(file_path) -> string
Opdef paths can be specified with the string “opdef:/node?section” (e.g. “opdef:/Object/subnet1?my_section”). Oplib paths can be specified with “oplib:/operator?operator” (e.g. “oplib:/Cop2/grain?Cop2/grain”).
If the file does not exist or an error occurs while reading, this function raises hou.OperationFailed.