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()