Next Index Previous

Python Examples

12. Program to read file data.

fh = open('hello.txt','r')
print(fh.read())
fh.close()