; FileSize Example
; ----------------

; Write a few typed values to a demo file
file=WriteFile("demo_filesize.dat")
WriteInt file,12345
WriteFloat file,3.5
WriteString file,"Robo"
CloseFile file

; FileSize returns the length of a file in bytes
Print "demo_filesize.dat is "+FileSize("demo_filesize.dat")+" bytes"
Print "(4 int + 4 float + 4 string length + 4 characters = 16)"

; Clean up the demo file
DeleteFile "demo_filesize.dat"
Print ""
Print "Deleted demo_filesize.dat"

Print ""
Print "Press any key to close the example"
WaitKey

End
