prog12_15.py

with open("greeting.txt", encoding="utf-8") as file_obj:
    data = file_obj.read()

with open("greeting2.txt", "w", encoding="utf-8") as file_obj:
    file_obj.write(data)

# プログラム12-15(ファイルのコピー ①:全部読んでから書く)