My code genereates a csv file as output in which a particular column("OUTPUT NUMBER")contains a string value fetched from db.
Now the problem is when i open this csv file the OUTPUT NUMBER column misses the zero("0") digit for example suppose the column has 3 values 01,02,12 then when the file is opened this column will show values as 1,2,12.
Ya wen seen in unix server in csv file data its written correctly that is 01 02..
but wen i open this file using excel in my windows system data is getting formatted is there any way to solve this
Not a very nice one, requiring manual excel action:
Select column->right click->Format cells choose "special" and type in 0# as the format and numbers will be padded with a zero if single digits. 00# for padding to three digits etc.