I wonder what the standard says when status='replace' is used in a open statement if the file DOES NOT exist. I read in different answers:
If REPLACE is specified and the file does exist, the file is deleted, a new file is created with the same name, and the status is changed to OLD.
So what is going on when file does not exist? Does it depend on the compiler?