FILE *new = fopen("new.out", "w+"); // creates a new file that didnt exist before
char finput[50];
fprintf(new, "hello\nworld\n");
while(fgets(finput, 51, new) != NULL)
{ /*never reaches this point*/ }
我在做什么错?如果我写入一个尚不存在的文件,稍后有可能从该文件读取吗?我可以写入一个新文件,然后在同一个C程序中读取该文件吗?