> I need a clean way to detect if a floppy is in the floppy
> drive, prior to accessing the drive to write a file.
> 
> Is there a clean method, in perl, to do this?

Err... why not do the following:

while (not open(FILE, ">m")) { prompt("Insert Disk") }

The *** BEST *** way to do this sort of thing is to try. 
You won't create reliable programs by testing a condition,
twiddling thumbs (even for a microsecond) and then doing
it.  The real word is nasty like that.

However, on my system the floppy disk drive is
disconnected... and ANY attempted access will hang it
(temp).  I guess on DOS/Windows you aren't going to get
much better than my solution anyways.  (touch wood).

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to