このファイルを開く必要がありますが、開かれておらず、理由がわかりません:
#include<stdio.h>
void copy();
int main(void)
{
copy();
return 0;
}
void copy()
{
FILE *src = fopen("srcc.txt", "r+");
if(!src)
{
printf("It was not possible to open the file");
return;
}
}
if 条件を渡すだけでメッセージが表示it was not possible to open the file
され、ファイルは作成されません。