![]() |
| ||
| student name and grade in file 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 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 " |
| ||
| Re: student name and grade in file 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. |
| ||
| Re: student name and grade in file cool thank you, I forgot about concatenation |
| All times are GMT -4. The time now is 2:38 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC