Java File Operations

Using Java, you can do file operations like read a file, write to a file, append data to an existing file, delete a file, etc.

In this tutorial, we shall go through the basic CRUD Operations on Files and provide a list of general file operations using Java.

Basic File Operations Tutorials

File Properties

  • Java – Get created timestamp of file
  • Java – Get last modified timestamp of file
  • Java – Update last modified date of file
  • Java – Get extension of file

Checks

Directory / Folder

  • Java – Create directory
  • Java – Check if directory exists
  • Java – Delete directory
  • Java – Rename directory

Others