stormist
asked on
Is it possible to save a remote txt file as a memory stream instead of a file?
i.e. http://www.example.com/example.txt saved direct into a memory stream
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can just wrap it in a StreamReader:
StreamReader rdr = new StreamReader(response.GetR esponseStr eam());
// Read line by line - in a loop, for example
string line = rdr.ReadLine();
// loop until line is null
StreamReader rdr = new StreamReader(response.GetR
// Read line by line - in a loop, for example
string line = rdr.ReadLine();
// loop until line is null
ASKER