use readfile and try/finally