• Post Reply Bookmark Topic Watch Topic
  • New Topic

Floppy ReadOnly Lock Problem  RSS feed

 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way i can check whether my floppy is Read-Only(locked) or not.

Is there any specialized class for this purpose in Java API.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Balasubramanian Chandrasekaran:
Is there a way i can check whether my floppy is Read-Only(locked) or not.

Is there any specialized class for this purpose in Java API.


If you try writing to it and get an IOException, one of the reasons could be because it is locked. Of course it is not a fool proof logic, because you might getIOException for other reasons too (e.g Disk is full).
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jim Yingst:


Thanks for your help guys
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!