I having a problem with the following. Why doesn't this work ?
when i run this, its segfaults.Code:#include <stdio.h>
struct myfile {
FILE * myPtr;
};
int main(int argc, char **argv) {
struct myfile *file;
file->myPtr = fopen("myfile.txt","a");
return 0;
}