wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Need Help In java.io.File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need Help In java.io.File" Watch "Need Help In java.io.File" New topic

Need Help In java.io.File

Muddassir Sayeed

Joined: Jul 08, 2001
Posts: 7
I am using java.io.File. I have set the file readonly from method setReadOnly() now i want to remove readonly attribute. is there any methos available to do so? and also tell me how to make a file hidden.
Waiting gor reply
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can not do it in Java, BUT you can do it like this:

Where '-H' is remove hidden attribute and '+H' is set hidden attribute.
[ July 09, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link: http://aspose.com/file-tools
subject: Need Help In java.io.File
Similar Threads
Program to check whehter a file is read-only / write
How to Convert a java.io.File to struts FormFile?
XSLT problem with javaScript removeAttribute()
Access Denied Error...
non-editable in textarea