student name and grade in file
Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Thread Solved
![]() |
•
•
Posts: 58
Reputation:
Solved Threads: 0
I need to add student name and grade to a file.
This is my section of code so far
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 "
This is my section of code so far
VB Syntax (Toggle Plain Text)
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 "
![]() |
Similar Threads
Other Threads in the VB.NET Forum
- C++ program write and display to file (C++)
- reading file I/O (C++)
- file and multidimensional array (C)
- Sorting a File (Python)
- Sorting student info Problem (Python)
- Need some help with Student Grade program (C++)
Other Threads in the VB.NET Forum
- Previous Thread: create dll using vb.net and how to call it from sql server
- Next Thread: create a .cab file
•
•
•
•
Views: 272 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode