I was trying to figure out how to open a text file inside C.
So far I've been using Peoplia (app that actually compiles code for me) and working with files was as simple as opening and closing them.
The way I usually did it was this:
int main()
{
FILE *fr;
fr = fopen("file.txt","r");
// loop to go through the file and do some stuff
return 0;
}
I'm using the newest version of Xcode, which I believe is 6.1 and all the guides to adding file to the project were outdated.
So how do I work with a file in Xcode, anyone?