Unable to open a file with fopen()

后端 未结 8 983
盖世英雄少女心
盖世英雄少女心 2020-12-03 18:21

I\'ve been trying to open a file and output text, but I keep getting errors. So I thought I would start at the very beginning and just try opening the file. This is my cod

8条回答
  •  借酒劲吻你
    2020-12-03 18:38

    Try using an absolute path for the filename. And if you are using Windows, use getlasterror() to see the actual error message.

提交回复
热议问题