how to convert a string to stream?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavankumar106
    New Member
    • Feb 2008
    • 11

    how to convert a string to stream?

    hi can anyone tell me how to convert a string to stream?
  • IanWright
    New Member
    • Jan 2008
    • 179

    #2
    Originally posted by pavankumar106
    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.



    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.

    Comment

    Working...