//Wrongnew File:foo = fopen("something.txt"); //Didn't open right, wrong handlefclose(foo);//Rightnew File:foo = fopen("something.txt");if(foo) { fclose(foo);}