I just try to make a simple program that is supposed to append some int value in a txt file. But my code doesnt work and i dont know why. I try it earlier and it did work but it wont in my 2nd time around. Please help me. i am using C v5.7.1 on windows 8. Thanks.
Code:#include<stdio.h> main () { int a=100; FILE *fp; fp=fopen("score.txt", "wa"); if (fp==NULL) { printf("file not found"); } fprintf(fp, "%d", &a); fclose(fp); return 0; }