fileFileStamp

Category: File IO

Syntax:

fileFileStamp:Int(filename:String)


Parameters

Returns

Int



Summary

Returns when a file was last written, as a number of seconds.

Takes a filename.

Returns the number of seconds from the start of 1970 to when the file was last written, or 0 if the file doesn't exist.

View detailed documentation online



Example
; Which save is newer?
If fileFileStamp("slot1.sav") > fileFileStamp("slot2.sav") Then
    Print "Slot 1 is the newest"
Else
    Print "Slot 2 is the newest"
EndIf

BambooBasic © 2026 Michael Denathorn