当我尝试读取txt文件时,fopen()总是返回NULL

时间:2016-10-08 17:06:28

标签: c visual-studio-2015 fopen

当我尝试使用fopen()读取txt文件时,它总是返回NULL。我该如何解决这个问题?

Problem code.

1 个答案:

答案 0 :(得分:0)

使用双斜杠:

" C:\ Documents and Settings \ juegos psps.txt"

因为它们必须用双引号括起来并且\是一个特殊字符,因此我们必须执行转义序列。

相关问题