Print output to file.