Write a function to create a text file containing following data

Write a function to create a text file containing following data
Write a function to create a text file containing following data
0
mpmgi
Mar 20, 2021 04:51 PM 0 Answers
Member Since Jun 2020
Subscribed Subscribe Not subscribe
Flag(0)

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
Replying as Submit
0 Subscribers
Submit Answer
0 Answers