fopen() returns a NULL pointer while the file exists on macOS but not on linux, why and how to fix this?

前端 未结 0 327
时光取名叫无心
时光取名叫无心 2021-01-24 01:58

I\'m trying to use fopen("somefile", "r") to read a file (that exists) that is in the same directory as my C code (ex: main.c).

FILE *myFile =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题