How do you flush the fprintf() file stream?

Jul 18, 2011 at 9:00pm
I have a file * that won't save anything thats fprintfed to it inside a while loop apparently because I don't close the file * until after the while loop and I have been terminating the program before the execution of the while(1) infinite loop terminates.
Jul 18, 2011 at 9:22pm
Did you try fflush()?
Jul 18, 2011 at 10:31pm
No.

Thanks.
Topic archived. No new replies allowed.