Answer:
#using python
def main ():
infile=open(‘my_name.txt’, ‘r’)
#using read method to read file contents
File_contents=infile.read()
#close
infile.close()
#display
print(file_contents)
#finally call main method()
main()
6.0m questions
7.8m answers