f = open("demofile.txt", "r") print(f.read()) f.close() #OR with open("demofile.txt","r") as file: print(file.read())