filmov
tv
Practice 11: Create File and Directory (Basic Java Programming 33)

Показать описание
【Basic Java Programming 33】
Let's code! Write a program to create directory and flie.
--------------------
[Practice]
・Create a new directory.
・Create a new text file in the new directory.
[Specification]
・The new directory path is your recent workspace.
・The name of the new directory is the "sample."
・Create the new directory named "sample" in your recent workspace directory.
・Whatever the new text file is named will be fine. You decide.
・If you could create a new text file successfully, write the message down the prompt.
・If you could not create a new text file, write the message down the prompt.
・If you could not create a new directory, write the message down the prompt. There is no need for messages if you could create a new directory successfully.
[Cases : Messages]
We created a new text file: The text file was created.
We could not create a new text file: The text file was not created.
We could not create a new directory file: The directory was not created.
--------------------
◆ Practice 11 Create File and Directory - answer
◆ Makoto Official Site
Let's code! Write a program to create directory and flie.
--------------------
[Practice]
・Create a new directory.
・Create a new text file in the new directory.
[Specification]
・The new directory path is your recent workspace.
・The name of the new directory is the "sample."
・Create the new directory named "sample" in your recent workspace directory.
・Whatever the new text file is named will be fine. You decide.
・If you could create a new text file successfully, write the message down the prompt.
・If you could not create a new text file, write the message down the prompt.
・If you could not create a new directory, write the message down the prompt. There is no need for messages if you could create a new directory successfully.
[Cases : Messages]
We created a new text file: The text file was created.
We could not create a new text file: The text file was not created.
We could not create a new directory file: The directory was not created.
--------------------
◆ Practice 11 Create File and Directory - answer
◆ Makoto Official Site