def _ReadTemplateFile(self, filename):
    file_object = open(filename, 'rb')
    file_data = file_object.read()
    file_object.close()
    return string.Template(file_data)
Reads a template string from file.
dataset/ETHPy150Open libyal/libyal/scripts/source-generate.py/SourceFileGenerator._ReadTemplateFile