Deleting Open Files

The effect of the remove function on an open file (§4.9.4.1)

The remove function deletes a file, even if the file is open.