Hi All
I'm writing a script that reads a CSV file and outputs an LDIF file for import. My CSV record would look like this:
Test,User,tuser@r.com,123456|1|C1^234567|2|C2^3456789|3|C3
I can "split" out the first 3 fields, but the last one is giving me grief. It's actually 3 separate valued separated by "^" - it may be only 1, it may be 2, it may be 5 values - I just don't know until I read the record. How can I split these values out without knowing exactly how many there are?
TIA
Rick
I'm writing a script that reads a CSV file and outputs an LDIF file for import. My CSV record would look like this:
Test,User,tuser@r.com,123456|1|C1^234567|2|C2^3456789|3|C3
I can "split" out the first 3 fields, but the last one is giving me grief. It's actually 3 separate valued separated by "^" - it may be only 1, it may be 2, it may be 5 values - I just don't know until I read the record. How can I split these values out without knowing exactly how many there are?
TIA
Rick