hello I know that the methods canRead() and canWrite() be used to find the find the read-write properties of a file is there a corresponding method to set the property of a file or may be some other alternative to do the same function . Coz i need to do a file locking system in a particular software. ------------------ Chance Favours the Prepared minds"
<I>Chance Favours the Prepared minds"</I>
posted 15 years ago
there is the setReadOnly() method in the File class. i think this is what your looking for. otherwise check the JAVA API for the File class, perhaps you find the thing your looking for. greetings, Karl