<p>I am working on a small project to take a CSV file and then insert its data into a HTML table (I would use datagrid and dataset or datatable, but the system I will be talking to does not support ASP.NET uploads for sending newsletters).</p>

<p>Anyway, I will use the file.readalllines method to return the contents of the csv file into a string array.</p>

<p>But for each string member of the array, I will be using the string.split function to split up the string into the char array. Problem is (and the csv file is generated by the system I talk to btw - I get data from this system and feed data into it), the csv contents are makes of cars. This means that I could have:</p>

<p>Nissan Almera</p>

<p>Nissan Almera 1.4 TDi</p>

<p>VW Golf 1.9 SE</p>

<p>And so forth...</p>

<p>Is there a robust way I could ensure that where I have Almera 1.4 TDi, for example, it is one member in the char array I split each string into, rather than seperate members.</p>

The Split() method takes a char parameter which can be used to specify the delimiter. So you can do something like:
```
```
String.Split(Convert.ToChar(","));
```
```
Judging by your question all the car makes should be delimited by commas so this should work.