I have this block of code to output a bunch of A's to a file (500 lines of 500 A's)
int main() {
FILE * output = fopen("somefile.txt", "w");
//initialize string
char s[500];
for(int i = 0;i < 500;i++) {
//set each letter to 'A'
s[i] = 'A';
}
for(int i = 0;i < 500;i++) {
//output the string 500 times
fprintf(output, "%s\n", s);
}
}
However, there's a reverse '^' at the end of each line. (screenshot here)
How do I get rid of it?