This week we will create a program that performs file processing activities. Your program this week will use the OS library in order to validate that a directory exists before creating a file in that directory. Your program will prompt the user for the directory they would like to save the file in as well as the name of the file. The program should then prompt the user for their name, address, and phone number. Your program will write this data to a comma separated line in a file and store the file in the directory specified by the user.
Once the data has been written your program should read the file you just wrote to the file system and display the file contents to the user for validation purposes.
User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.