Skip to content

Write at the end of a file

Aleksandar Hristovski

Asked Dec 9, 2008, 9:14 PM EST3 answers
Share
LinkedInX
I'm creating a login form that stores the user names, passwords and additional data in a file on my hard disk.
The problem is that that with each new login profile the contents of the file are overwritten.
i need the syntax for writing at the end of a file using StreamWriter (equivalent to ios::ate in c++).

Thanks,
hristo

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    Do you need it to written in C++ or C#?
    +1
  • +1
    I need it in c#, however i found what i needed (the syntax is FileMode.Append), sorry for the trouble.
    +1
  • 1 short reply
    • Bechir Bejaoui
      +1
      Good :-)
      +1