Saving + Windows

Windows specific forum
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Saving + Windows

Post by Brujah »

The saving for my game works for the first time.
The second time he tells me that it was not possible to save.

I create the file like this:
if createfile(0,"savegame.dat")

Do I have to delete the file first?
How do I do this?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

CreateFile(0,"myfile.dat")
;saving process

;We release the file.
CloseFile(0)

;Saving another time
CreateFile(0,"myfile.dat")
;saving
CloseFile(0)
.......
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Post by Brujah »

Okay, I did not close the file.
Thanx.
Seems in Linux it was not necessary...
Post Reply