posted 12 years ago
Hello there,
I'm experiencing issue while parsing an csv file. The purpose is to read multi lines with multi values.
Here's an example:
Grade: A; B; C; D
Group: james; roll; campbell
campus: a;b;c
campus: A;B;C
Group: Bob; kim; warm
campus: a;b;c
campus: A;B;C
.
.
if this match Group, it'll read the value of Group and those for the next 2 lines ( campus, campus ) and so one.
result:
Grade --> A;B;C;D
Group1 -> james;roll;campbell;a;b;c
Group2 --> Bob;kim;warm;A;B;C
Will I use switch inside a switch ? or while with if statement
Any suggestions ???
THKS