remove the make file, you don`t need to make a file when you open to write, all you have done is made a file that is empty, the open to write should fail and give an error message (file exists at line xxx), make file is used to make blank files that you can use as flags to show the software the current status, (thats the only use I found for them), for example, to NOT show the lengthy intro animation the next time your code is run, just make a file called "played" when you play the intro, before you do play the intro though, check if the file "played" exists, if it does then don`t play the intro again, if it doesn`t then the user deleted it or this is the first time the code has been run, so play the intro, cheers.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.