How to check if a file is empty??

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lewyche

Is there anyway for me to check if a file is empty in GDscript?

:bust_in_silhouette: Reply From: jgodfrey

I assume File.get_len() should return 0 bytes for an empty file.

https://docs.godotengine.org/en/stable/classes/class_file.html?highlight=get_len#methods