with open("fruits.txt", encoding="utf-8") as file_obj: for line in file_obj: print(repr(line)) # プログラム12-13(for文で1行ずつ読む)