A
Adam Gordon
Hello,
I'm trying to write a java program that will access a cd-rom drive. I just
want to treat the drive as one big file where I can grab bytes off of.
Right now I can use java.io.RandomAccessFile to do that.
One that that I can't figure out is how to have my program detect if there
is actaully a cd in the drive instead of just throwing an I/O exception. My
reason for wanting to make this distinction is that if the CD is scratched
there will also be an I/O Exeption, and I want to handle those dirrerently.
Thanks,
I'm trying to write a java program that will access a cd-rom drive. I just
want to treat the drive as one big file where I can grab bytes off of.
Right now I can use java.io.RandomAccessFile to do that.
One that that I can't figure out is how to have my program detect if there
is actaully a cd in the drive instead of just throwing an I/O exception. My
reason for wanting to make this distinction is that if the CD is scratched
there will also be an I/O Exeption, and I want to handle those dirrerently.
Thanks,