Get the file size of a file from an input string containing a path and filename.
string GetFileSize( string strPathAndFilename, uint * pnBytes = NULL, __int64* ullBytes = NULL)
Returns a Windows like file size formatted for display.
The result is accurate to 2 decimal places from Origin 9.3.
EX1
int GetFileSize_ex1() { string strFileSize; string strDataFile = "C:\\Origin80\\Origin.ini";//specify the path and file name to a exiting file. strFileSize = GetFileSize(strDataFile); return 0; }
origin.h