The code below to append a file is giving segmentation fault...
It takes the input but doesnt print DONE..
Plz help me out...
char * ptr;
printf("\nName the file: ");
fprintf(f,"The file is appended here\n");