This gives the distance from an object in a text file ("coordinates.txt")