Spliting Tab Delimited Strings

digitaldan3

Member
Joined
Jun 29, 2005
Messages
7
Programming Experience
3-5
I am using a StreamReader to read text from a text file. The data in the text file is tab delimited.

Is there an easier way to process the text file than using a streamreader and reading line by line.

I am converting each line to a string. I then need parse out the string into an array. I tried using the split function but I do not know how to split a string delimited by tabs.

Thanks in advance

Dan
 
Try:
VB.NET:
[color=Blue]Dim[/color] DelimitedString [color=Blue]As String[/color] = "Tab Delimeted String"[color=Blue]
Dim[/color] myString() [color=Blue]As String[/color] = DelimitedString.Split(vbTab)

hope this helps
 
Back
Top