convert stream to string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am getting data from an FTP into a Stream object. Now I need to put this
data into a string so I can manipulate it. Can anyone show me some example
code? (C# preferably)
 
tparks69 said:
I am getting data from an FTP into a Stream object. Now I need to put this
data into a string so I can manipulate it. Can anyone show me some example
code? (C# preferably)


// Assuming "Stream Input" ...
Input.Position = 0;
using (StreamReader Reader = new StreamReader(Input))
return Reader.ReadToEnd();
 
Back
Top