update problem.txt and file io