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)
'swrStreamWriter.WriteLine(Me.textGrade.Text)
swrStreamWriter.Close()
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 "