๐Ÿ“– Beginning Python Programming /
Module: Files Operation

More file object operation

๐Ÿ“– Beginning Python Programming / Files Operation / More file object operation

Reading Plain Text File with readlines

with open("guests.txt", "r") as file_obj:
    result = file_obj.readlines()

print(result)