Okay. I'm really stuck on this floppy disk problem.

I am trying to emulate formatting a floppy. But really it's much simpler than that.

I built several files in the code that are simply text files composed of the character ö .

That is the character that comes up in hex as every byte of data in every cluster (1,457,664 of them to be exact).

But in the code, the user clicks the button. Step 1. erase everything on the floppy.

Step2. write these files to the floppy so that this character will cover the disk.

step 3. delete the files.


Problem: The program stops after only a couple of the files have written and the error is 61-disk is full.

Well, i know it isnt but I end the app and I find that only about 93kb have been written (which i already knew). I don't get that at all. Well, the floppy has a bad cluster on it. Is this the reason? Doesn't windows skip bad clusters?

Any ideas?

Thanks
wengang