Dim fileName As String = Label2.Text ' = "C:\test\example.txt" Dim enc = System.Text.Encoding.GetEncoding("Shift_JIS") Dim lines As String() = System.IO.File.ReadAllLines(fileName, enc) Dim upperIndex As Integer = lines.GetUpperBound(0) Dim X(upperIndex), Y(upperIndex), UD1(upperIndex), UD2(upperIndex) As Single Dim splitter As Char() = {ControlChars.Tab, " "c, " "c} Dim separator = StringSplitOptions.RemoveEmptyEntries For rowIndex = 0 To upperIndex Dim columns As String() = lines(rowIndex).Split(splitter, separator) Single.TryParse(columns(0), X(rowIndex)) Single.TryParse(columns(1), Y(rowIndex)) Single.TryParse(columns(2), UD1(rowIndex)) Single.TryParse(columns(3), UD2(rowIndex)) Next rowIndex