There are a number of variations on the DEM file format. This code only handles the USGS format, not SDTS or any other variant.