Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Writing to a full hard drive

  1. Sep 27, 2007 #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?
  2. jcsd
  3. Sep 27, 2007 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    This is an operating system issue, not a Fortran issue. A write request that would more than consume all available disk space will fail on any reasonable operating system.
  4. Sep 27, 2007 #3


    User Avatar
    Homework Helper

    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.
  5. Oct 18, 2007 #4


    User Avatar
    Science Advisor

    Your command will fail.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook