When you open a file with stdio's fopen function you have to close it with the corresponding function fclose. file_close is game studio specific and won't work here. You're even passing a wrong parameter, namely a pointer to a FILE struct. file_close expects a handle.


Always learn from history, to be sure you make the same mistakes again...