Published
- 1 min read
`fopen`: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS
The solution for this is noted below
fopen
: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS
Solution
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
Try other methods by searching on the site. That is if this doesn’t work