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; 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
thanks for your helpHELLOWORLDIt's GoodTo SeeYou