Simple question. why isn't "\n" not working.
I open the txt file and it's all on one line.Code:#include<stdio.h> main() { int x,max; printf("Number to count up to:"); scanf("%d", &max); FILE *fp; fp=fopen("c:\\test.txt", "a+"); for (x=0; x<max; x++) {fprintf(fp, "%d\n",x);} fclose(fp); }