I have this error:
error C4996: \'fopen\': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_S
You must define _CRT_SECURE_NO_WARNINGS in the preprocessor settings of your project, or #define _CRT_SECURE_NO_WARNINGS at the beginning of your file where you use fopen(). Or just use fopen_s() instead.
_CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
fopen()
fopen_s()