Iterating through a char array in c# till you get a space
I have a gui application that gets data from a testboard. I first transmitted the data on terraterm in ascii format.. the data looked somwhwat like the following
CL 1354 1256 1267
Br 1221 1657 3467
Yr 2465 2789 2567
I also wrote a function to receive the data in my c# application through the serial port.
I gt the data in a char Array.it looks like below.
Array[0]='C'
Array[1]='L'
Array[2]=space
Array[3]='1'
Array[4]='3'
Array[5]='5'
Array[6]='4'
Array[7]=space...
....till i get a carriage return for CL followed by Br data.
I want to display this data in a csv file like how i displayed it on terra term.
How do i do it?