Skip to content

raylib.IsFileNameValid

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if fileName is valid for the platform/OS

Parameters

Parameter Default Value Note
fileName

Return value

Condition Return Value
(always) number

Notes

Example

names = ["my_save.dat", "bad/name", "score.txt"]
for name in names
    if raylib.IsFileNameValid(name) then
        print name + " is valid"
    else
        print name + " is INVALID"
    end if
end for

Clone this wiki locally