programming-examples/python/Input_Output/Python program to read an entire text file.py

5 lines
110 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
def file_read(fname):
txt = open(fname)
print(txt.read())
file_read('test.txt')