Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position.
Original signature is '- (void)truncateFileAtOffset:(unsigned long long)offset'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual void TruncateFileAtOffset( ulong offset )
Public Overridable Sub TruncateFileAtOffset ( _ offset As ULong _ )
public: virtual void TruncateFileAtOffset( unsigned long long offset )

- offset (UInt64)
- The offset within the file that will mark the new end of the file.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)