This is the piece of code where the exception is thrown:
Private Sub btnNext_Click(sender As Object, e As EventArgs) Handles btnNext.Click
    File.OpenText("F:\CustomerRecords.txt")
    Dim customer As New CustomerRecord
    customer.strLastName = customersFile.ReadLine().ToString()
    lblLastName.Text = customer.strLastName
End Sub
 
    