Page 1 of 1

Saving + Windows

Posted: Wed Nov 09, 2005 4:47 pm
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?

Posted: Wed Nov 09, 2005 4:50 pm
by Polo
CreateFile(0,"myfile.dat")
;saving process

;We release the file.
CloseFile(0)

;Saving another time
CreateFile(0,"myfile.dat")
;saving
CloseFile(0)
.......

Posted: Thu Nov 10, 2005 12:10 am
by Brujah
Okay, I did not close the file.
Thanx.
Seems in Linux it was not necessary...