| | |
student name and grade in file
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jul 2007
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
- 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
| Thread Tools | Search this Thread |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





