programming-examples/python/Input_Output/Python program to read an entire text file.py
2019-11-15 12:59:38 +01:00

5 lines
110 B
Python

def file_read(fname):
txt = open(fname)
print(txt.read())
file_read('test.txt')