How To Create a File in Java

Facebooktwittergoogle_plustumblrFacebooktwittergoogle_plustumblr
How to create a file in Java
Create File Java

This example will show you how to create a new file in Java.

To do this, we use the File.createNewFile() method.

The method returns a boolean value:
- true - The file has been successfully created.
- false - The operation failed or the file already exists.

Reference
http://docs.oracle.com/javase/8/docs/api/java/io/File.html

Facebooktwittergoogle_plustumblrFacebooktwittergoogle_plustumblr

Facebooktwittergoogle_plustumblrFacebooktwittergoogle_plustumblr