chickadee » 9p » with-output-to-file

(with-output-to-file connection file thunk) procedure

Open file on the 9p connection connection and call thunk with the current-output-port set to a port that writes to the file. When the thunk finishes, the port is closed.