Write a program which takes two points from a file and prints the distance between them to another file. Use a function to find the distance.