J Jon Skeet Sep 12, 2003 #2 Al said: How can I write string object to stream? Click to expand... Work out what encoding you want, get the appropriate bytes, and write them. See http://www.pobox.com/~skeet/csharp/unicode.html for more details.
Al said: How can I write string object to stream? Click to expand... Work out what encoding you want, get the appropriate bytes, and write them. See http://www.pobox.com/~skeet/csharp/unicode.html for more details.
J Jay B. Harlow [MVP - Outlook] Sep 12, 2003 #3 Al, Have you tried a StreamWriter? http://msdn.microsoft.com/library/d...en-us/cpguide/html/cpconwritingtexttofile.asp System.IO.StreamWriter has a constructor that accepts a System.IO.Stream object. Hope this helps Jay
Al, Have you tried a StreamWriter? http://msdn.microsoft.com/library/d...en-us/cpguide/html/cpconwritingtexttofile.asp System.IO.StreamWriter has a constructor that accepts a System.IO.Stream object. Hope this helps Jay
T Tom Mertens Sep 12, 2003 #4 Use a StreamWriter object. Info and sample on <http://msdn.microsoft.com/library/default.asp? url=/library/en- us/cpref/html/frlrfsystemiostringwriterclasstopic.asp>
Use a StreamWriter object. Info and sample on <http://msdn.microsoft.com/library/default.asp? url=/library/en- us/cpref/html/frlrfsystemiostringwriterclasstopic.asp>