Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position.
- iOS 2.0–13.0Deprecated
- macOS 10.0–10.15Deprecated
- Mac Catalyst 13.0+
- tvOS 9.0–13.0Deprecated
- watchOS 2.0–6.0Deprecated
The offset within the file that will mark the new end of the file.
If the file is extended (if
offset is beyond the current end of file), the added characters are null bytes.