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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -