#include <revolution/vf.h>
s32 VFGetFileSize( const char* path );
s32 VFGetFileSizeW( const VFWchar* path );
path |
The address that stores path and file name. Either a full or relative path may be specified. |
Success: File size (0 or higher) A size of 2 GB or more is returned as 2 GB (2,147,483,647 bytes ) Failure: -1 (at this time, VF errors can be verified with VFGetLastError)
Gets the file size in bytes. To get an accurate file size of 2 GB or higher, use the VFGetFileSizeU32 function.
VFGetFileSizeU32, VFGetFileSizeByFd, VFGetFileSizeU32ByFd
2008/12/16 Added a description of the limits on the return values
2007/05/08 Added description of return values.
2006/05/31 Initial version
CONFIDENTIAL