Setting the File Size of a Large File

Describes how to set the size of a file.

The function TEntry::SetFileSize() is intended for use by file-system plugins, and not recommended to be called by general clients of the File Server.

  1. Declare the variable type as a TInt64.
    //TInt fileSize = 3000;    
    TInt64 fileSize = 3000000000;
  2. Call the SetFileSize() function with the new file size.
    TEntry entry;
    ...
    //entry.iSize = fileSize;
    entry.SetFileSize(fileSize);