Q:

Write a python program to display contents of a file on the screen

0

Write a program to display contents of a file on the screen

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import os

os.chdir("c:/ahmedfiles")
myfile=open("KSU.txt","r")
print(myfile.read())
myfile.close()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Write python program to read a file and display it... >>
<< Write a program to create a file with the name “...