The IO method GetFileLength returns the size of a given file stored in an int variable. Since it's only an unsigned 32 bit number, the function works properly only with files smaller than 2147483647 bytes. Any method that operates on file sizes should return an unsigned long.
The IO method GetFileLength returns the size of a given file stored in an int variable. Since it's only an unsigned 32 bit number, the function works properly only with files smaller than 2147483647 bytes. Any method that operates on file sizes should return an unsigned long.