Publicクラスの外に以下のように宣言
Imports Microsoft.VisualBasic.FileIO Public Class Form1
Dim tfp As New TextFieldParser(Fname)
tfp.TextFieldType = FieldType.Delimited
tfp.SetDelimiters(",")
Dim sreadData As String()
i = 0
While tfp.EndOfData = False
sreadData = tfp.ReadFields()
ID(i) = sreadData(0)
Data(i) = sreadData(1)
i = i + 1
End While