Use a program like Microsoft Notepad or UNIX vi to create a text file, “Zapata,” which contains the text string given in Exercise 8, distributed over two lines. Write a program that creates a subdirectory called MexicanHistory and moves the Zapata file from the current directory to that new subdirectory. In your program, use one declaration to create the path to Zapata and another declaration to create a path to MexicanHistory. In a third declaration, use the
resolvemethod to create a destination path. Create the new directory only if that directory does not exist already. Allow the move to fail if it already happened in a previous execution, but report the failure with
catch-block statements.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.