Forum Moderators: coopster
The host provided me a script (kinsuth-mar.com/scripts/import.txt) that works fine for simple data, but if a field has a comma as part of the value, the program undestands that as a new field.
Example:
the data in excel is:
1¦numbers¦1,2,3¦basic
(4 fields)(the ¦ is just what I used here in the forum as tabs are not allowed)
thus, the generated csv file is
1,numbers,"1,2,3",basic
(4 fields)
However, the script understands the data as:
1¦numbers¦"1¦2¦3"¦basic
(6 fields)
So,
1) Does anybody know how to fix the script to let it understand that if a comma is within "", it shouldn't be interpreted as a field separator?
2) Also, if you know any other script that does what I am looking for please let me know.
3) Any other workarounds?
Thanks in advance,
Martin
[edited by: jatar_k at 11:20 pm (utc) on Dec. 19, 2003]
[edit reason] delinked [/edit]