Fixed bug in arcToHgt where it wrote to end of file instead of last row of file