use with

ensure file is closed correctly