def METHOD_NAME(self, file_name, type):
    glEnable(type)
    shader = (GLuint * 1)()
    glGenProgramsARB(1, shader)
    glBindProgramARB(type, shader[0])
    program = open(file_name).read()
    glProgramStringARB(type, GL_PROGRAM_FORMAT_ASCII_ARB, len(program), program)
    glDisable(type)
    return shader[0]