StreamReader is too greedy
问题 I'm trying to process part of a text file, and write the remainder of the text file to a cloud blob using UploadFromStream . The problem is that the StreamReader appears to be grabbing too much content from the underlying stream, and so the subsequent write does nothing. Text file: 3 Col1,String Col2,Integer Col3,Boolean abc,123,True def,3456,False ghijkl,532,True mnop,1211,False Code: using (var stream = File.OpenRead("c:\\test\\testinput.txt")) using (var reader = new StreamReader(stream))