Output to file.