Joshua Perez
Joshua Perez

Reputation: 11

Where are text files in my Xcode project?

I've created a simple program to write in a text file, and it seems as if it works. I just cannot find where to locate the text file it created in my Xcode project.

    FILE *fptr;

    fptr= fopen("testawesome.txt", "w");
    
    fputs("I love programming!", fptr);
    
    fclose(fptr);
    
    return(0);
}

I believe the code is fine, I just can't find exactly where the text file is. When I search in finder for testawesome.txt, it just references my project and not the text I want it to create.

Upvotes: 1

Views: 43

Answers (0)

Related Questions