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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -