chickadee » posix » set-file-position!

set-file-position! FILE POSITION #!optional WHENCEprocedure
set! (file-position FILE) POSITIONprocedure

Sets the current read/write position of FILE to POSITION, which should be an exact integer. FILE should be a port or a file-descriptor. WHENCE specifies how the position is to interpreted and should be one of the values seek/set, seek/cur and seek/end. It defaults to seek/set.

Exceptions: (exn bounds), (exn i/o file)