Not tested but using an inputbox should work,....
Code:
Public Class Form1
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim answerarray(5) As String
Dim selection As Integer = 0
Dim change As String
Dim finish As Boolean = False
Dim studentname As String = InputBox("Please enter your name ...")
While selection < answerarray.Length
answerarray(selection) = InputBox("Enter your answer for question (" & (selection + 1).ToString & ")")
selection = selection + 1
End While
While finish <> True
change = InputBox("Type 1 to change an answer on a specific question" _
& vbCrLf & "Type 2 to finish the test")
If change = "1" Then
selection = CInt(InputBox("Please enter question number to be changed"))
answerarray(selection - 1) = InputBox(" What is your new answer?")
ElseIf change = "2" Then
MessageBox.Show("Your answers will be saved now....")
IO.File.WriteAllLines("c:\" & studentname & "answers.txt", answerarray)
finish = True
Else
MessageBox.Show(" Invalid Entry, press to try again...")
End If
End While
' Show answers
Dim Answers As String = IO.File.ReadAllText("c:\" & studentname & "answers.txt")
MessageBox.Show(Answers)
Me.Close()
End Sub
End Class