python print contents of file

Solutions on MaxInterview for python print contents of file by the best coders in the world

showing results for - "python print contents of file"
Lia
28 Mar 2016
1f = open("file_name.txt", "r")
2print(f.read())
3f.close()