0

Hello,

I am making a checkList program in c# and it's almost complete.

I used the "StreamWriter" and "StreamReader" class to read and write the texts. But after closing it once when i reopen the application and add a new task in the CheckList the prrvious one gets erased from the file.

Is there a way to write a line of text in a file without erasing the prevoius texts ?

2
Contributors
2
Replies
9
Views
2 Years
Discussion Span
Last Post by BibhutiAlmighty
0

If you look at the available constructors for StreamWriter you will see that one of them can be used to indicate you want to append to the file.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.