Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
OS dependent. On Linux, a deleted file opened for writing in another process is not physically deleted, but only ceases to be visible, but continues to be written through the open descriptor (and even read! if the "r" flag is present). On Windows, everything depends on the exclusive lock when opening for writing: if it is present, the deletion will be refused, if it is absent, the deletion will be successful, the descriptor opened for writing will become invalid and all subsequent operations on it will fail (throw an exception).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question