Skip to content

raylib.FileTextFindIndex

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Find text index position in an existing file, or -1 if not found. Not supported on web

Parameters

Parameter Default Value Note
fileName
search

Return value

Condition Return Value
(always) number

Notes

Example

idx = raylib.FileTextFindIndex("hello world", "world")
print "Found at index: " + idx   // prints 6

Clone this wiki locally