Puts the file pointer at the end of the file referenced by the receiver and returns the new file offset.
- 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 file offset with the file pointer at the end of the file. This is therefore equal to the size of the file.
Raises an exception if the message is sent to an
NSFile object representing a pipe or socket or if the file descriptor is closed.