Loading lesson path
Java
Java File Handling focused on Java Files and related concepts.
File handling is an important part of any application.
In Java, you can create a new file with the createNewFile() method from the File class.
If you are just starting with Java, the easiest way to write text to a file is by using the FileWriter class.
In the previous chapters, you learned how to create and write to a file.
To delete a file in Java, use the delete() method: