ID:138276
 
I probably shouldn't be requesting features, but...
Could you add like a fsize(F) proc that returned the size of file F in bytes?
Unless something like this exists, or someone has some other, hidden method of obtaining this...

-AbyssDragon

Could you add like a fsize(F) proc that returned the size of file F in bytes?


Ha! I beat you to it. This already exists. Perhaps I forgot to document it.

You can give it a resource file (from the .rsc cache) or a file name in the external file system or a savefile.

--Dan
In response to Dan
If its there, I can't seem to find it :-)

Perhaps you named it something else?...

-AbyssDragon
In response to AbyssDragon
I had forgotten about that one..
-AbyssDragon
In response to AbyssDragon

Oops. I forgot that I moved the functionality of fsize() into length() along with a few other things.

By the way, I have found length() to be useful for testing the size of a list, when there is a possibility that the list is null. Doing my_list.len could give you a crash, so one commonly does (my_list && my_list.len), but you can do that with length(my_list). Just a little piece of code trivia.

--Dan