' Unfortunately, LOF() returns a signed LONG, ' which means that sometimes when we're dealing ' with a file that is bigger than 2GB, then we're ' going to get a negative number for file size! ' This function corrects this error by returning ' the correct file size. ' FUNCTION FILESIZE# (HANDLE) L# = LOF(HANDLE) IF L# < 0 THEN L# = L# + 4294967296# FILESIZE# = L# END FUNCTION