Results 1 to 3 of 3

Thread: ADD to a txt file? [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91

    ADD to a txt file? [RESOLVED]

    I know how to write a text file and i am using the following code:

    VB Code:
    1. Dim Name As String = Textbox1.text
    2.     Dim strPath As String = "C:\bdtwinners.txt"
    3.     Dim SW As StreamWriter
    4.     Dim FS As FileStream
    5.     FS = New FileStream(strPath, FileMode.Open)
    6.     SW = New StreamWriter(FS)
    7.     SW.WriteLine(Name)
    8.     SW.Close()
    9.     FS.Close()

    How would i add on the file? this clears the txt file, or at least the 1st line
    Last edited by Synth3t1c; Apr 15th, 2004 at 03:35 PM.

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