Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Create simple OpenFile() and CloseFile() functions for those files which are used by the parsers (they just call open() and close() internally).