Instance Property

offsetInFile

The position of the file pointer within the file represented by the receiver.

Declaration

var offsetInFile: UInt64 { get }

Discussion

Raises an exception if the message is sent to a file handle representing a pipe or socket or if the file descriptor is closed.

See Also

Seeking Within a File

func seekToEndOfFile() -> UInt64

Puts the file pointer at the end of the file referenced by the receiver and returns the new file offset.

func seek(toFileOffset: UInt64)

Moves the file pointer to the specified offset within the file represented by the receiver.