How to Write the Read-only file in java?
How to Write the Read-only file in java?
Collapse
X
-
Tags: None
-
You can not write the read-only file, since it is read-only and you can write if you have appropriate file permissions.
Regards
Dheeraj Joshi -
If you need to manipulate the file using system commands, look at the java.lang.Runti me class.
Also, there is a setWritable method that you might want to explore in the java.io.File class.
Try writing something, and we'll help you through it.
Good Luck!Comment
Comment