How to take a stringbuilder and convert it to a stream?
SO my stringbuilder has to be converted into a :
StreamReader stream = ????
Update
I tried using a stringreader like:
StringReader sr = new StringReader(sb.ToString());
StreamReader stream = new StreamReader(sr);
but that doesn't work?
Use ToString to convert the StringBuilder into a String, and use a StringReader to wrap the String as a Stream.