Reading whole file at once in Python
f = open("data.txt") print(f.read()) f.close()