#include #include #include #include // Try running this and check the contents of MyFile.txt // Then uncomment the //fflush(fp) line recompile and rerun, then check // the contents of MyFile.txt // Writing to a file is fully buffered int main(void){ FILE * fp = fopen("MyFile.txt","w"); fprintf(fp,"Important information\n"); //fflush(fp); int *p = NULL; *p = *p + 1; fclose(fp); //flush the buffer return 0; }