I'm getting closer to being able to save the file I want based on my exploration of Cubiquity code. The Question of how to read in the .dat file should probably be left to examining how our OC code talks to Substrate.