I am developing a program to export text into CSV format.
My text format is like 001, 0012, 000173.
If I use the following code segment:
ofstream tmp ("book1.csv");
tmp<<"001";
tmp<<",";
tmp<<"0012";
tmp.close();
and open the this file in Excel, the cell will be displayed
1 and 12 not 001 and 0012l.
How can I modify the code to let the Excel not convert the text
format?
Thanks!