c# - How to Write MemoryStream to End of Text File -
I've used this code to write in Memoristrym data text file.
dim author as new writers as dim memory New Memoristrym () (Memoristrem) New Failstrym (app. Startappath and "\ Doksog" and ".txt", Failmod. Open File Access. Write, FileShare. Readwrit) Now type the memorystream file memorystream. Rightto (The file) But when I write data in a text file, I delete it from the previous content. How do I write a memory stream at the end of the text file? (Just add memory stream data at the end of the file)
what
File. Search (0, SeekOrigin.End) Before writing
Comments
Post a Comment