我需要使用C创建.log文件.但是,我无法使用通常的方法来创建它.文件已创建但无法写入.谁能解释一下?
f = fopen("file.log", "w"); fprintf(f, "print this");
c
c ×1