Connecting Tech Pros Worldwide Help | Site Map

how to convert a string to stream?

  #1  
Old May 15th, 2009, 10:26 AM
Newbie
 
Join Date: Feb 2008
Posts: 11
hi can anyone tell me how to convert a string to stream?
  #2  
Old May 15th, 2009, 11:19 AM
Expert
 
Join Date: Jan 2008
Location: York
Posts: 178

re: how to convert a string to stream?


Quote:
Originally Posted by pavankumar106 View Post
hi can anyone tell me how to convert a string to stream?
Firstly you should be posting in the Questions forum, not the insights one. Could you refrain from posting here please.

http://bytes.com/topic/c-sharp/answers/

Secondly, why do you need to convert it to a stream? If you describe the problem, there might be a better way to do it...

If you really want to go down that route, make a StreamWriter, and then wrap it up in a StreamReader. Then you can write your string to the StreamWriter, and then read the string back within the StreamReader. As I say, there may well be a better way to do this if you share more details on your problem.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert string to double? kathy answers 8 February 9th, 2006 09:15 PM
String to Stream Hayato Iriumi answers 6 November 20th, 2005 04:05 AM
Convert a string to stream Randy answers 7 November 15th, 2005 12:31 PM
Convert string to stream? Casper Bang answers 2 July 19th, 2005 07:25 PM