Hello there!
I have a list of arrays that gets printed on a txt file, and looks like this:
[first_element, second element, third element,... nth element]
[first_element, second element, third element,... nth element]
[first_element, second element, third element,... nth element]
Each row contains the same numbers of element inside the array.
This file is later read by another piece of code wich extract every element and do stuff with them.
Problem is that it could be possible that an element contains the character "," resulting in a bad reading of this file.
I have no control on how the elements are made because I grab them through various dB tables not made by me.
Question is: is it possible to change the character separator of an array from "," to something else I prefer like "|"?
Otherwise, could you suggest me a clever way to print out a list of arrays? ?
Thanks in advance!
I have a list of arrays that gets printed on a txt file, and looks like this:
[first_element, second element, third element,... nth element]
[first_element, second element, third element,... nth element]
[first_element, second element, third element,... nth element]
Each row contains the same numbers of element inside the array.
This file is later read by another piece of code wich extract every element and do stuff with them.
Problem is that it could be possible that an element contains the character "," resulting in a bad reading of this file.
I have no control on how the elements are made because I grab them through various dB tables not made by me.
Question is: is it possible to change the character separator of an array from "," to something else I prefer like "|"?
Otherwise, could you suggest me a clever way to print out a list of arrays? ?
Thanks in advance!