I'm having problems reading or writing files in my C++ program.
I'm using Fedora 16 on a USB stick and Eclipse for C/C++ developers.
Here's snippet of code from my program. fp is always 0.
I've also got other code that is loading files (which always fail).
I've tried running Eclipse using 'sudo' but that doesn't help.
I don't receive any error messages.
FILE* fp = fopen("test.xyz", "r");
if(fp)
{
fprintf(fp, "test123");
fclose(fp);
}
Any help would be great. Thanks!
Chris