writeline overwrites my file, instead of appending [resolved]
i have a list of accounts in a txt file that goes like this:
username
password
username
password
...and so on.
if a user makes a new account, i want it to append to the end of the file.
here is the code:
VB Code:
Dim sw As StreamWriter = New StreamWriter("users.txt")
sw.Write(name)
sw.Write(pass)
sw.Close()
but the text only erases my file and writes the name and pass
Last edited by joeframbach; Dec 30th, 2002 at 09:49 PM.
if you choose not to decide you still have made a choice!