Question
Writing a CSV file
I have a CFLOOP that loops over some data retrieved from a
SQL query, within the loop I create a CSV file by using CFFILE to
APPEND data to the file.
the problem is that when I open the file in Excel it looks ok (aside from one long number deciding to go into scientific notation), but the problem is that when I resave it in Excel it tells me that it's not in the correct CSV format. I save it, and bring the data back, and sure enough some of the longer numbers are messed up, losing a significant amount of accuracy.
Is there a particular way I need to write a CSV, perhaps setting headers in a special way?
Thanks
Mark
the problem is that when I open the file in Excel it looks ok (aside from one long number deciding to go into scientific notation), but the problem is that when I resave it in Excel it tells me that it's not in the correct CSV format. I save it, and bring the data back, and sure enough some of the longer numbers are messed up, losing a significant amount of accuracy.
Is there a particular way I need to write a CSV, perhaps setting headers in a special way?
Thanks
Mark