File: LP6E/AppendixB/Part2/reader.py

file = open('myfile.txt')                # 'r' is default open mode
print(file.read())                       # Or print(open().read())



[Home page] Books Code Blog Python Author Train Find ©M.Lutz