Simultaneously opening a file multiple times has implementation-defined behavior. On While some platforms , this is not allowed. On others, it might result in may forbid a file simultaneously being opened multiple times, those that allow it may facilitate dangerous race conditions.
Non-Compliant Code Example
...