# Reads in file one line at a time and # prints the contents of the file. in_file = "silly.txt" out_file = "output.txt" input_file = open(in_file) output_file = open(out_file, "w") for line_of_text in input_file: print("printed to screen: " + line_of_text) # print("printed to screen: " + line_of_text, end="") output_file.write("Inside of file: " + line_of_text) input_file.close() output_file.close()