I found this answer for Python. Does it apply to C# WebClient.OpenRead?
In the following example:
- Does OpenRead downloads all the csv file at once (hence ReadLine refers to a local Stream)?
- Like in Python, does the download is being done progressively with successive ReadLine?
Code sample
WebClient client = new WebClient();
Stream stream = client.OpenRead("http://www.MyWebsite.com/FileToDownload.csv");
StreamReader csvFile= new StreamReader(stream);
while (!csvFile.EndOfStream)
{
string line = csvFile.ReadLine();
//do stuff with line
}