File.eof_reached()
causes infinite while-loop on Android when read/write permissions aren't set
#42959
Labels
File.eof_reached()
causes infinite while-loop on Android when read/write permissions aren't set
#42959
Godot version:
3.1
OS/device including version:
Android
Issue description:
I am trying to open an existing file and count the lines in there. Works like a charm on Windows, but crashes on Android because the code is stuck in the while-loop. It's a *.txt logfile that I try to open. I already did set the exporting-options so that my *.txt files should make it into the apk, but its still stuck in the loop. Also restarting Godot did not help.
Here's my code:
Here what the console says:
The text was updated successfully, but these errors were encountered: