Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wats a device i/o error???
#1
Can someone tell me what a device i/o error is??
Reply
#2
device input/output error. don't know that specific error code, but my guess would be you tried to print something and the printer didn't exist or *something like that*

if you gave me the code I could try and figure out what's causing the error...
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
i dont think the error is in the program.
im accessing my file from the floppy. i open the file from qbasic, and the computer stops functioning for a few seconds. Then it comes back to normal and i get a *Device I/O Error* and the code does not even appear on the screen.
Please Help....its IMPORTANT!!

is it a problem with the floppy??......if it is then can i recover the data?
Also, this only happens to one file on the flopppy. PLEASE HELP!!!!
Reply
#4
floppy = corrupted
data = lost
you = in trouble
Reply
#5
Janesh is right.
Device I/O Error is Basic Error Code 57.
In general, what it means is that your program was unable to complete the last I/O command that it issued. If a floppy is involved, it probably is getting some sort of read error.

If you have another copy of the file that's on the floppy, put it on a good floppy and try again.

If the version of the file that's on the floppy is the only one you have, you have problems. If the file is a text file, try copying it from the floppy to your harddisk. If it gives you an error, hit "retry" several times. If it still gives you any error, tell it "ignore", and then try to mend the file on the harddisk with an editor (like Edit).
If the file is not a text file, your dead, just try to get another copy.

Good luck!
*****
Reply
#6
Ar. It could be read-only, but it should just be "archive".

Also, check that the whole floppy isn't read-only (if it is read-only, you can see through the hole in the corner...)
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#7
AGA,
The term "read only" is a file attribute. It means that you can't write on the file which has this attribute set. If you set this attribute on a floppy file, I'm not sure what error message you'd get when trying to write, but it won't be "device I/O error".

In the case of the floppy in question, it's possible that the floppy is "write protected", but that won't prevent you from reading a file. If you tried to write on a write protected floppy from Qb, you'd get a "Permission denied" error code 70.

Gee it's nice to have a QuickBasic manual to refer to. :wink:
*****
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)