Getting the Size of a Large File using RFile

How to get the size of a large file through the file server client.

The function RFile::Size64() is the 64-bit version of the RFile::Size() function, and returns a 64-bit file size.

  1. Pass a variable of the type TInt64 to handle file sizes that are larger than 2GB-1.
    // Remove TInt size;
    TInt64 size;
  2. Use the function RFile::Size64() for files larger than 2GB-1.
    //Remove r = file.Size(size);
    r = file.Size64(size);