chickadee » 9p » with-input-from-file

with-input-from-file connection file thunkprocedure

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