Published
- 1 min read
error C4996: `fopen`: This function or variable may be unsafe
The solution for this is noted below
error C4996: fopen
: This function or variable may be unsafe
Solution
Select your project and click "Properties".
then chose "Configuration Properties" -> "C/C++" -> "Preprocessor"
In the field "PreprocessorDefinitions" add ;_CRT_SECURE_NO_WARNINGS
Try other methods by searching on the site. That is if this doesn’t work