0
mpmgi
Write a function to create a text file containing following data
Neither apple nor pine are in pineapple. Boxing rings are square.
Writers write, but fingers don't fing. Overlook and oversee are opposites. A house can burn up as it
burns down. An alarm goes off by going on.
i) Read back the entire file content using read() or readlines () and display on screen.
ii) Append more text of your choice in the file and display the content of file with line numbers
prefixed to line.
iii) Display last line of file.
iv) Display first line from 10th character onwards
v) Read and display a line from the file. Ask user to provide the line number to be read.
Reply on This
0 Subscribers
Submit Answer
0 Answers