How do you flush the fprintf() file stream?

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.
Did you try fflush()?
No.

Thanks.
Topic archived. No new replies allowed.