fopen deprecated warning

fopen deprecated warning
On Visual Studio 2015 C++ compiler, I get the following warning when my code uses the fopen and such calls.


Well, you could add a:

Before you are possible to use fopen but become you considered using fopen_s as the warning recommends? It returns an error code permitting you to check the result of the function call.

The problem with just disabling deprecated function warnings is that Microsoft may discard the role in question in a later version of the CRT, breaking your code. Now, this won’t happen in this instance with fopen because it’s part of the C & C++ ISO standards.