Create Read Only File Java

Create Read Only File Java

In below sample program we will create new read only file using File class setWritable(false) operations.

  • CreateReadOnlyFile.java:

  • Output:

Create Read Only File Java

  • For more information about File API please refer oracle documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *