What Happens When Writing to a Completely Full Hard Drive?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 4K views
JoAuSc
Messages
197
Reaction score
1
Let's say you're running a Fortran program that writes to the hard drive. What happens when the hard drive is completely full? Do other files get written over?
 
Physics news on Phys.org
For DOS and Windows, the returned count of bytes written will be less than requested, and will be zero if the disk is already full.
 
JoAuSc said:
Let's say you're running a Fortran program that writes to the hard drive. What happens when the hard drive is completely full? Do other files get written over?

Your command will fail.