10-02-2012 12:31 PM
Hi everyone,
I am having some problems writing my data to a spreadsheet file... Basically, I have crunched my data and obtained the values I want... When I stop the the loop I want the data to be saved to a spreadheet file... The first line should be a header, and the lines below should be the corresponding data consisting of a string and numerical data... See example below.
Subject Name, Max Force (N), Mean Force (N), Min Force (N);
David, 2134, 23, 284;
Phil, 1234, 43, 321;
Tina, 4059, 335, 55;
Can anyone please help with this?
Kind regards,
Jack
Solved! Go to Solution.
10-02-2012 12:57 PM
Since you are writing everything at the end, convert your array of data to string, and then prepend your row of headers.
10-02-2012 01:07 PM - edited 10-02-2012 01:26 PM
this will create a file(test.csv), checks if file exists(no: creates header plus data...if yes:appends data only):save vi to a folder first...test.csv will be saved in that folder also.
10-04-2012 08:26 PM
Hi apok,
Thanks heaps for this... Works a treat!
I made a couple of changes... See attached anyone interested...
Kind regards,
Jack