Reputation: 7515
I'm trying to find if the .net framework pools StreamWriter.WriteLine()s before writing them, or if it does it as they come and I can't find an answer on MSDN. For example, if I have this simplistic code :
StreamWriter sw = [Whatever];
for (int i = 0; i < 100000; i++)
{
sw.WriteLine(string.Format("Whatever : {0}", i);
}
Would this write 100000 times to the disk, or will the framework pool some of them together?
Upvotes: 2
Views: 144