routine to read DMP files