Answer the question
In order to leave comments, you need to log in
How to open a stream for writing and then for reading?
Tried like this:
using (var stream = response.GetResponseStream())
{
using (var sw = new StreamWriter(stream))
{
sw.Write("X");
}
}
using(var stream = response.GetResponseStream())
{
using(var sr = new StreamReader(stream))
{
responseString = sr.ReadToEnd();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question