yong wrote:

> Now I can use STDOUT.reopen to redirect STDOUT output to a file.But How 
> can I redirect it to a string?
> 

see "ri StringIO"

DJ

-- 
Posted via http://www.ruby-forum.com/.