Is there a max length that a stream writer can write out to a file? Or is there a max length that WriteLine() can output? I am trying to write some data to a file but all of the data does not seem to make it.
Thank you for the help
Is there a max length that a stream writer can write out to a file? Or is there a max length that WriteLine() can output? I am trying to write some data to a file but all of the data does not seem to make it.
Thank you for the help
Be sure you wrap your StreamWriter in a using-block, or are careful about your explicit management of the resource's lifetime.
using (StreamWriter writer = new StreamWriter(@"somefile.txt"))
{
// ...
writer.WriteLine(largeAmountsOfData);
// ...
}