Writes inputs generated to 2 files: InputX.dat and InputX.mh.