3
Answers

string to jagged array

Ask a question
Hi I am battling with an array. I receive data from hardware via the serial port. I capture the data and store it in a string called PortData. The string I get starts with a ASCII004 char and there are 4 other ASCII005 characters as delimiters. That will break up the string in 5 groups of data. I need to convert that string into a jagged array or any other method where I can acess the 4th group of data to draw a graph. I tried to split it, but does not work. here is a sample of the data I get. " 01 1 2 1 0340 21 33 06 08 09 20 09 0015  0010 0000 0242 0241 0600 0000 0600 0000  0284  0242 0284 0242 0284 0242 0284 0242 0284 0242 0284 0242 0284 0242 0284 0242 0284 0242 0284 0241 0284 0242 0284 0242 0284 0241 0284 0241 0284 0241 0284 0241 0284 0241 0284 0241 0284 0241 0284  0203 0413 0500" any ideas on how to split this data

Answers (3)