So i can get: Button pressed: txt opened ->added current time, then close it. TextWriter tw = new StreamWriter('date.txt') // write a line of text to the file tw.WriteLine(DateTime.Now) // close the stream tw.Close() I'd like to open txt file, add some text, close it, and later after clicking something: open date.txt, add text, and close it again. I'd like to add new line with text to my date.txt file, but instead of adding it into existing date.txt, app is creating new date.txt file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |