...
A better way to interact with files, in terms of security, is to use functions designed for to interact with the native system. Many implementation specific functions offer a level of control over file objects that the ISO/IEC 9899-1999 C specification does not.
...