Add a basic version of 'withOpenFile'.