fopen() not working in C

后端 未结 4 978
北恋
北恋 2020-12-21 18:29

I got it fixed. Thanks for all the help.

I\'ve now looked through quite a few articles, forum posts and topics here; however, none have actually fixed my issue. The

4条回答
  •  甜味超标
    2020-12-21 19:00

    The only explanations that makes sense are that you don't have permissions to create the file in the working directory, or the working directory is not where you are looking for the file to be created.

    fopen() not working

    Well, of course it works. You shouldn't get in the mindset that the standard library doesn't work.

    No warnings/notices or otherwise stuff to give me any idea of what is wrong.

    You did not check for errors after calling fopen(). If you don't check for errors, how do you expect them to be delivered to you?

提交回复
热议问题