Output coords to file