FILE *, , , stdio POSIX.
, , write ( ), .
, .
, , , stdio FILE * AppendFile - , FILE * , , .
A similar thing can happen with os file descriptors (integers returned by open), since different calls openwill create different file descriptors rather than sharing their search position, as the file has grown, different file descriptors will end from the search position, which in fact weren’t at the end of the file, if you can’t open the file only in add ( O_APPEND) mode , where the OS processes this for you.
Opening and closing a file over and over again creates a lot of extra work anyway.
source
share