Hi all!
I am working on a parser section of code, where we allow a user to open up a CSV file and we basically process data that is delimited by commas (as you'd expect). Anyways, I am trying to use the find patter function to stop at the next comma, then put the characters into a buffer that isn't a space, up until the next comma. I have a section of the code below to show you what I'm doing. i have a feeling this is the issue in all of my code. Does this syntax below do what I want above?
intmon = FindPattern (linebuff, 0, 20, ",", 0, 0); for(int y = 0; y < intmon; y++) { TestSteps[index].test_num[y] = linebuff[y]; } offset+=intmon; //Loop to place testname in test_name intmon = FindPattern (linebuff, offset, 20, ",", 0, 0); for(int y = offset; y < intmon; y++) { if (linebuff[y] != space[0]) { TestSteps[index].test_name[y] = linebuff[y]; } } offset= offset + intmon;