Hi, I practiced programming c++ with visual studio code on Mac. But when I tried to debug the code as below, it always come out with "failed to open file!". It seems quite strange. Pl help me. thx a lot
1 2 3 4 5 6 7 8
constchar* filename ="file://Users/*****/***.txt";
FILE* fp= fopen(filename, "wb");
int a=1;
if (fp == NULL)
{
printf("failed to open file!\n");
return -1;
}