Contents

offset()

Gets the position of the file pointer within the file.

Declaration

func offset() throws -> UInt64

Return Value

The position of the file pointer within the file.

Discussion

Throws an error if called on a file handle representing a pipe or socket, or if the file descriptor is closed.

See Also

Seeking Within a File