텍스트파일로부터 한 줄 씩 읽어서 출력하기
ReadLines.py
print("텍스트 파일의 내용 읽어서 출력하기")
#f = open("D:\\PythonNote\\PythonNote\\58_IO\\02_ReadLines\\abc1229.txt", "r")
f = open("abc1229.txt", "r")
for t in f.readlines():
print(t)
f.close()
Hello
Hi
Bye
파이썬 강의_ReadLines_텍스트 파일로부터 한 줄 씩 읽어서 출력하기