Sure - it's documented in the manual, but basically this is what you need:
 Code:
$out=RedirectOutput("")