[Newbies] capturing output in memory

Mark Volkmann mark at ociweb.com
Wed Oct 1 22:30:50 UTC 2008


For the purpose of writing unit tests for code that writes to a stream  
I want to use something other than a FileStream that will allow me to  
write to it just like FileStream, but will just hold the data in  
memory. When I'm finished writing, I want to retrieve everything I've  
written as a single String. Is there a class that does that?

---
Mark Volkmann






More information about the Beginners mailing list