org-babel-with-temp-filebuffer

org-babel-with-temp-filebuffer is a Lisp macro in `ob-tangle.el'.

(org-babel-with-temp-filebuffer FILE &rest BODY)

Open FILE into a temporary buffer execute BODY there like
`progn', then kill the FILE buffer returning the result of
evaluating BODY.