|
-
Apr 10th, 2004, 12:58 PM
#1
Thread Starter
New Member
VB6.0 to VB.Net HELP!!
I am trying to learn VB.Net, I am pretty proficient in VB 6.0 and have been doing ok with it till now. I need to be able to have the program read a .txt file sequentially, compare one of the values on each line and if they match to my criteria then it will load the values for that line into variables. Problem is I know exactly how to do this in VB 6.0 but the concept of how the Stream Writer and Stream Reader works in .Net is really starting to confuse the daylights of me. I have read most of the help related information, check out what the Deitel book on VB.Net programming and checked some online information on it and I still am not putting it all together. This is how it would look if I did it in VB 6.0, if I can see how this would be wrote in .Net I should be able to grasp the concept……God I hope.
Open "C:\WINDOWS\Desktop\Grades.txt" For Input As #1
Do While Not EOF(1)
Input #1, strName, strType, curGrade
If strName = cboStudent.Text Then
Select Case strType
Case "Lab"
curLab(a) = curGrade
a = a + 1
Case "Questions"
curQuestions(b) = curGrade
b = b + 1
Case "Tests"
curTest(c) = curGrade
c = c + 1
Case "Participation"
curParticipation(d) = curGrade
d = d + 1
End Select
End If
Loop
Thanks ahead of time for any help!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|