[Solved] error C4996: visual studio: why do I get an error when I use fopen in c? [duplicate]

[ad_1]

You need to place a definition of #define _CRT_SECURE_NO_DEPRECATE before your include. Like,

#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>

[ad_2]

solved error C4996: visual studio: why do I get an error when I use fopen in c? [duplicate]