I have a super simple program
#include <stdio.h>
int main(){
FILE *fp;
fp = fopen("test.txt", "w");
}
It shows a Microsoft Debug Assertion Failure. Then in the Error list it shows error C4996. This states that
'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
BUT even when using this, it still shows the warning. Can someone tell me why this block of code won't create a file for me.
Adding a close statement will not fix it.
Could it be a software problem (Using VS).