fopen does not work Sysprogs forums › Forums › VisualGDB › fopen does not work This topic has 2 replies, 2 voices, and was last updated 8 years, 1 month ago by akhilavit. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts September 27, 2016 at 12:34 #9134 akhilavitParticipant FILE* fp = fopen(“D:\\new1.txt”, “r”); does not work. It does not get fopen.c fp is null. while debugging, if I press F11, it shows “No Source Available” September 27, 2016 at 20:07 #9136 supportKeymaster Hi, Looks like you might be specifying some arguments to fopen() incorrectly. Please refer to fopen() reference for details on various modes. October 3, 2016 at 15:33 #9185 akhilavitParticipant I was wrongly giving Windows directory as a path. D:\Akhil.txt When tried linux directory path, It worked. /tmp/Akhil.txt Thanks. Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In