I want to print to a .txt file all 25 numbers, but in the file only the 0 apears.
How can I print consecutive outputs?
Code:#include<stdio.h>
int main()
{
int j;
FILE *textcode;
for(j=0; j<26; j++)
{
textcode=fopen("/home/julian/Desktop/textcode.txt", "w");
fprintf(textcode, "%d\t",j);
}
return(0);
}