Writes the solution to a file called Path.txt