File i/o library for the Mantis DAQ system