\starttext \input foo \getbuffer[foo] \stoptext