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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -