fopen does not work

Sysprogs forums Forums VisualGDB fopen does not work

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9134
    akhilavit
    Participant

    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”

    #9136
    support
    Keymaster

    Hi,

    Looks like you might be specifying some arguments to fopen() incorrectly. Please refer to fopen() reference for details on various modes.

    #9185
    akhilavit
    Participant

    I was wrongly giving Windows directory as a path.  D:\Akhil.txt

    When tried linux directory path, It worked. /tmp/Akhil.txt

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.