The text file contains the following: inside the [], anything inside () was not in the text file, just for clarification 

[1(ID)

Jimmy(First name)

Paul (Last name)

78 (marks1)

80 (marks2)

92 (marks3)

2

Ben

James

67

82

73
]

I created a structure that holds student details including their name, id, marks in each subject.

```
Private Structure StudInfo
    Public FName As String
    Public LName As String
    Public StudentId As Integer
    Public ScMark As Integer
    Public EnMark As Integer
    Public MaMark As Integer

```

The program needs to read the first six elements in a row, storing each element into the corresponding structure type, then let it become the first element of an array"students()", and then next six elements, let it become the second element of that array. I have no idea how to use loops to do that. 

```
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    'create an array that hold student details
    Dim Students() As StudInfo

    ' read from text file 
    Dim FileNum As Integer = FreeFile()
    Dim TempS As String = ""
    Dim TempL As String
    FileOpen(FileNum, "some.text", OpenMode.Input)
    Do Until EOF(FileNum)
        TempL = LineInput(FileNum)
        TempS = TempL + vbCrLf
    Loop
End Sub

```

Thank you.