Are you sure your following the sequence:
close
change disk
( create file )
open file with write enabled
write file
??
Dwight
Date: Tue, 11 Feb 2014 07:59:44 -0600
From: jules.richardson99 at
gmail.com
To:
Subject: MSDOS, programming, and disk changes?
Hey all, anyone recall if I need to be doing anything special in my code
(running under MSDOS) when writing to one floppy, changing the disk, and
then writing to another?
I'm closing open files before the disk change, but I seem to consistently
get data errors when attempting to write following the change (even if it's
the same floppy that's put back in), as though the OS is noticing the disk
change and is deliberately refusing to write to the new media.
That behavior seems quite sensible - and vital if DOS is caching any of the
FAT structure - but I've not found any documentation covering it, or what
the correct process should be (e.g. disk reset via DOS function 0Dh, or
drive reset via BIOS 13h/00h, or something else entirely...?)
cheers
Jules