using up ram when saving to file...

Blitz3D Forums/Blitz3D Programming/using up ram when saving to file...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a game program running that saves player data at reqular intervals, this is data that would be used in later sessions.

An issue I have run into is that with the save function active , Task Manager shows memory usage increasing, which I believe is a memory leak symptom.

Am I opening and closing the file correctly...?

dir$="players\"+p\user$+"\"+p\name$+"\cords.dat"
fileout=WriteFile(dir$)
WriteString(fileout,p\cord$)
CloseFile(fileout)

dir$=""
fileout=0


Any help on why memory use would increase by using this function would be welcome.

BB3D version 1.98