CBSE Class 12 Computer Science
Question 35 of 51
Data File Handling — Question 35
Back to all questionsdef diary_content(f):
myfile = open(f, "r")
str = " "
while str:
str = myfile.readline()
print(str, end = '')
myfile.close()
diary_content("DIARY.TXT")