Hello,
I have a question, I have a program where I use a stream writer and I write from a list object into a textfile, the only code I put in a while cycle is:
streamwriter1.WriteLine(string);
The application works.
Then I have another program, I have the same situation and I do the same, except that this time in order to enter the strings into the textfile I have to do it this way:
streamwriter1.WriteLine(string);
streamwriter1.Flush();
If I don't put the flush method the string is not entered.
What is the difference, why is that working in one program and in other have to add the flush method?
Thanks