Example #1
0
 static RC BackupTruncateFile(VFile file, int size)
 {
     long current;
     RC rc = file.get_FileSize(out current);
     if (rc == RC.OK && current > size)
         rc = file.Truncate(size);
     return rc;
 }