V
Vagabond Software
Apparently, the Split method handles consecutive tabs as a single delimiter. Does anyone have any suggestions for handling consecutive tabs?
I am reading in text files that contain lines of tab-delimited data. I was using string[] stringArray = lineOfText.Split('\t') to automatically populate an array used to populate the values in a new DataRow.
However, sometimes the lines of text contain null values. I can find these null values by opening the file in a text editor and using the arrow keys locate consecutive Tabs with, presumably, a null value between them.
Any help is greatly appreciated.
- VS
I am reading in text files that contain lines of tab-delimited data. I was using string[] stringArray = lineOfText.Split('\t') to automatically populate an array used to populate the values in a new DataRow.
However, sometimes the lines of text contain null values. I can find these null values by opening the file in a text editor and using the arrow keys locate consecutive Tabs with, presumably, a null value between them.
Any help is greatly appreciated.
- VS