Dumb question

BlitzMax Forums/BlitzMax Beginners Area/Dumb question

I don't know if this is possible.

But, can you delete bytes of data from a file?

This is a function of my scoring system:


Function AddToHS(name:String,points:Int)
	Local file:TStream = WriteFile("hs.data")
		
		WriteString(file,name)
		WriteInt(file,points)
	
	CloseFile(file)

End Function



I want a remove function aswell, but i'm stumped.

I can find the specific name like so:

	Local name:String, myname:string = "bla"
	Local file:TStream = ReadFile("hs.data")
	While Not Eof(file)
		
		name = ReadString(file,3)
		points = ReadInt(file)
'???
'???
	If name = myname
'???
'???

	Wend
	CloseFile(file)


but then how would I remove it?

Thanks in advance!