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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -