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
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
Sociology,
9 hours ago
Math,
9 hours ago
Math,
17 hours ago
Social Sciences,
17 hours ago
Environmental Sciences,
8 months ago
Chemistry,
8 months ago