I want to generate a CSV file for user to use Excel to open it.
If I want to escape the comma in values, I can write it as \"640,480\".
If I want to keep the
Pretty old thread but why don't you just add whitespace after your value. It will be then treated as string and no leading zeros will be stripped.
"001,002"." "