Connecting Tech Pros Worldwide Forums | Help | Site Map

how to convert a string to stream?

Newbie
 
Join Date: Feb 2008
Posts: 11
#1: May 15 '09
hi can anyone tell me how to convert a string to stream?

Expert
 
Join Date: Jan 2008
Location: York
Posts: 179
#2: May 15 '09

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 C# / C Sharp bytes