epiCode Active Member Licensed User Mar 14, 2023 #1 I do not have enough experience with B4J. I am currently saving a list of arrays having multiple string items as a CSV like this: 1. Iterate over the list having arrays 2. Read array elements one by one 3. Create a string with array elements and commas in between 4. Add that string to new list 5. Save the new list using file.writelist Would like to know if that is the optimal method or there can be a better way ? Thanks!
I do not have enough experience with B4J. I am currently saving a list of arrays having multiple string items as a CSV like this: 1. Iterate over the list having arrays 2. Read array elements one by one 3. Create a string with array elements and commas in between 4. Add that string to new list 5. Save the new list using file.writelist Would like to know if that is the optimal method or there can be a better way ? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2023 #2 CSV is a bit more complicated as there are some characters that need to be escaped. There are two implementations of CSV: StringUtils.SaveCSV [B4X] CSVParser - CSV parser and generator Upvote 0
CSV is a bit more complicated as there are some characters that need to be escaped. There are two implementations of CSV: StringUtils.SaveCSV [B4X] CSVParser - CSV parser and generator