demo_ref_file_readlines.py:
f = open("demofile.txt", "r") print(f.readlines())
C:\Users\My Name>python demo_file_readlines.py
['Hello! Welcome to demofile.txt\n', 'This file is for testing purposes.\n', 'Good Luck!']