Contents

seekToEndOfFile()

Places the file pointer at the end of the file referenced by the file handle and returns the new file offset.

Declaration

func seekToEndOfFile() -> UInt64

Return Value

The file offset with the file pointer at the end of the file. This is therefore equal to the size of the file.

Discussion

Raises fileHandleOperationException if called on a file handle representing a pipe or socket, if the file descriptor is closed, or if any other error occurs while seeking.

See Also

Deprecated