check if file is writable java program
The canWrite() method of File class is used to check if file is writable java. It returns true if the specified file is writable else return false. Example: package com.w3schools; import java.io.File; public class WritableFileTest { public static void main(String args[]){ try { //File File file = new File("D:/Test files/newTest.txt"); //Check the file … Read more