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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -