I need to add student name and grade to a file.
This is my section of code so far

Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click
        Dim swrStreamWriter As IO.StreamWriter
        swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt")
        swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text)
    End Sub

I know the problem is with this line " swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) " . I'm not sure how to show in the file "textStudent textGrade". Need to write, in a file student then grade on the same line, eg. " Brandon 70 "

You want to make both texts one string and write that to the file.

swrStreamWriter.WriteLine(Me.textStudent.Text + " " + Me.textGrade.Text)

Also research the VB.Net String Functions for further reading.

again, a great help, thanks
This question has already been answered. Start a new discussion instead.