File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help In java.io.File

 
Muddassir Sayeed
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
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.
Thanks
Waiting gor reply
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
/Rene
[ July 09, 2002: Message edited by: Rene Larsen ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic