Computer Science, asked by avenger1444, 17 hours ago

Write a Python script file to enter any five lines entered by the user to a file named ‘myText.txt’ by using writelines() method of file object. The program should also print the entire contents of the file. Use two functions in the program, one for writing and another for reading and displaying the contents.​

Answers

Answered by shivvkumar5764
0

Answer:

the files are a key component of almost all applications. But it has been a challenge for programmers to use them in an optimized manner. Because the mishandling of files can pull down the performance of any application miserably.

This topic is important for programmers but has the same relevance for automation testers.

Similar questions