| | |
student name and grade in file
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
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 |
"crystal .net .net2005 .net2008 30minutes 2005 2008 access account arithmetic array basic button buttons center check code component connectionstring convert crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel fade file-dialog filter firewall folder ftp generatetags hardcopy image images input insert intel math monitor navigate net networking opacity output panel passingparameters peertopeervideostreaming picturebox picturebox1 port printing problem problemwithinstallation project reports" savedialog searchvb.net select shutdown string survey tcp temperature text textbox timer timespan toolbox trim updown user useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





