Click here to Skip to main content
15,887,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i need to change file permission using java. for readonly property there is built-in function file.setReadOnly(). but i cant find any built-in function for writable property and readwrite property. Any one can tell me the way to do the above.

Thanks.
Posted

1 solution

Java SE 6.0 apparently has it[^], in older versions of Java, however it is missing. See, for instance, the following page: "IO: Read-Only File Confusion"[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900