I'm trying to print to file and for some reason it just won't work out. I can read a file with no problems, but printing to it just comes up blank time and time again.
Can someone kindly point out what is wrong with this code?
I do not fall into this if loop at all, yet the file still comes out empty
Can someone kindly point out what is wrong with this code?
Code:
FILE *out;
out = fopen("C:\report.txt","w");
if (!out)
{
printf ("***COULD NOT FIND FILE***\n");
exit(1);
}
fprintf (out,"TEST");
Comment