read the entire text file using the read 28 29 function

Solutions on MaxInterview for read the entire text file using the read 28 29 function by the best coders in the world

showing results for - "read the entire text file using the read 28 29 function"
Gale
02 Feb 2016
1# Program to read the entire file using read() function
2file = open("python.txt", "r")
3content = file.read()
4print(content)
5file.close()
6
7
8# Program to read the entire file (absolute path) using read() function
9file = open("C:/Projects/Tryouts/python.txt", "r")
10content = file.read()
11print(content)
12file.close()
similar questions