I don't understand how openGL has anything to do with the server. It's a client-side application. But, since you are seemingly hacking clients then maybe you should just stop asking here.
Anyways, all file modification functions are in the link in post #2.