Create a program that performs file processing activities. The program will use the OS library in order to validate that a directory exists before creating a file in that directory. The 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. The 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 the program should read the file you just wrote to the file system and display the file contents to the user for validation purposes.

Solved
Show answers

Ask an AI advisor a question