Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
OpenFileDialog1.Filter = "CSV File|*.CSV"
phrfListFile = OpenFileDialog1.FileName
End If
Catch ex As Exception
End Try
Dim SReader As New StreamReader(phrfListFile)
Dim SWriter As New StreamWriter("C:\Race\NewphrfListFile.CSV")
Dim strData() As String
Do While SReader.Peek <> -1
strData = Split(SReader.ReadLine, ",")
SWriter.WriteLine(strData(0) & "," & strData(1) & "," & strData(2) & "," & strData(3) _
& "," & strData(9) & "," & strData(10) & "," & strData(11) & "," & strData(12))
Loop
SReader.Close()
SWriter.Close()
End Sub
End Class