Hi all,
In my program, I output values an .csv file. Now I output the calculated values without any labels: i.e;
In function:-
CString function(double const& val1, double const& val2, double const& val1)
{
CString str1, str2, str3;
return str1 + _T("\n") + str2 + _T("\n") + str3;
}
This gives me the output like:
$101
220m
330m
But I want to out put this with labels in 2 columns:
Id | $101
distance1 | 220m
Distance2 | 330m
(I have used "|" only to replicate a column..)
If I output heading along with values,i.e;
CString heading1 = _T("Id:") ;
return heading1 + str1 + _T("\n")...................
The output is obviously :" Id: $101"
Both are in a single column and is considered to be one string. How can I display them in 2 columns, in a comma separated values(.csv) file?