aspose file tools*
The moose likes I/O and Streams and the fly likes exception when writting to a readable file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "exception when writting to a readable file" Watch "exception when writting to a readable file" New topic
Author

exception when writting to a readable file

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Hello All,

In interview there was a question regarding exception name when writting to a readable file,
I answered as if we use setReadonly true and latter check if file.canwritable if it returns true then we can write,

Please guide.

Thanks,
Ujwwala
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2771
    
  10

I think they were going for IOException. By "readable", they might have meant to say "read only". You'll get an IOException if you try to write to a read only file.
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83
Thanks fot the reply,

Regards,
Ujwwala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception when writting to a readable file
 
Similar Threads
regarding serialization
MQ Exception --- 2033 error
RandomAccessFile
hassle with jakarta poi
can't create cookie using jsp