Find what line of the file the curser is reading

Godot Version

4.2

Question

Is there a buildin method to get what line of the txt file the Fileaccess is reading?
I know there is get position but apprantly it returns position in bytes instead of line or char length

You can read the whole file as a string once, and process them as you need. Call String.split("\n") if you need the file as lines.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.