Question: Code a writeToTextFile function that takes two parameters that consist of a file path and a string that you plan to append to the text

Code a writeToTextFile function that takes two parameters that consist of a file path and a string that you plan to append to the text file described in the file path parameter.The function returns nothing. Code a readFromTextFile function that takes a single parameter that is a file path.The function then returns a string that contains the contents of the indicated text file. Code a readListFromTextFile function that takes a single parameter that is a file path.The function then returns a list that contains the contents of the indicated text file.Each element of the list contains an individual line of text from the text file. Code an application that can write text to, or read text from, a text file.Use the three functions above and make sure you display what the read functions return.The application should have a menu and run continuously until the user tells it to stop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!