Results 1 to 6 of 6

Thread: writeline overwrites my file, instead of appending [resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65

    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:
    1. Dim sw As StreamWriter = New StreamWriter("users.txt")
    2. sw.Write(name)
    3. sw.Write(pass)
    4. 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!

    RUSH rocks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width