operating system - What happens to open files which are not properly closed? -


what happens if not close file after writing it?

let assume got too many open files error , due program crashes.

does os handle me? , if damages not-closed files, how notice damaged?

generally speaking, if write file, application crashes, operating system flush buffers disk , clean you. same occur if program exits without explicitly closing files. not damage files.

the bad situation when write file , pulls plug out on computer.


Comments

Popular posts from this blog

git - TortoiseGit does not show commit log properly -

string - Using python and postgres, variables within execute function? -