Page 1 of 1

Python: Reading a File via Looping

Posted: Thu Apr 16, 2026 6:30 pm
by Jason

Code: Select all

with open(demo_file.txt) as demo_file_dot_txt:

	for d in demo_file_dot_txt:

		print(d)