Does anyone know of available code/functions on the net for reading and writing Fallout plug-ins? It could be in C++ or any other language. I know several modders have successfully done this (such as ElminsterEU with Fo3Edit), but I'm looking for samples of code I could use as an example for writing a program that reads-in the ESP's records, modifies some things, and writes them back out again.
Any help or links would be greatly appreciated!

Cheers,
Miax