Next Topic

Previous Topic

Book Contents

GetFileSize

int GetFileSize(string sFilename)

Return values

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

Parameters

  • sFilename - Path and name of file.

Remarks

The function is limited to files smaller then 2^31 bytes.