Very basic function for writing data to file.  Uses only the unparsed header from read.mon.complete with no adaptions possible yet.