I'm using fprintf to print strings to a file, but I can't get it to make a new line.
Here's my code:
The output I'm hoping for is:Code:char buffer[80]; FILE *f; f = fopen ("tester.txt", "wb"); fprintf(f, "HELLO\nWORLD\nIt's Good\nTo See\nYou"); fclose (f);
But instead I'm getting:HELLO
WORLD
It's Good
To See
You
thanks for your helpHELLOWORLDIt's GoodTo SeeYou