Next Topic

Previous Topic

Book Contents

GetFileSizeMB

int GetFileSizeMB(string sFile)

Return values

Size of file in number of mega bytes if the function is successful; if the file cannot be accessed the return value is -1.

Parameters

  • sFile - Path and name of the file.