Baca baris file teks demi baris menggunakan fungsi readline ()

# Program to read all the lines in a file using readline() function
file = open("python.txt", "r")
while True:
	content=file.readline()
	if not content:
		break
	print(content)
file.close()


Gorgeous Gazelle