I wrote a C program to copy characters from one file to other in Vs 2019 but it is not working, please help me out. I am getting the error"D:\C PROGRAM\TEST\test1\x64\Debug\Test1.exe (process 15472) exited with code 3".
Here is the code--
include<stdio.h>
include<stdlib.h>
int main()
{
FILE* fp;
errno_t err;
err = fopen_s(&fp,"C:/Users/PRASHANT SONI/Desktop/fileopening.txt", "w");
fputc('H',fp);
fclose(fp);
return 0;
}


