Click here to Skip to main content
15,900,973 members

Comments by bunathangaraj (Top 21 by date)

bunathangaraj 19-Oct-11 10:55am View    
In notepad also same problem, I have stored in CSV like "1,23456789" and when i opened in notepad it shows "123,456,789"
bunathangaraj 19-Oct-11 9:44am View    
Excel only.. no solution for this? Can't i change this format as text and store?
bunathangaraj 19-Oct-11 7:49am View    
pls ignore the last line in the above code
bunathangaraj 19-Oct-11 7:48am View    
I am using cstring to format the float to string. Both in excel and notepad, in both the places it is showing wrong value.
Below is my code,
CFileStream _fileLog;
CString strDelimiter = _T("\t");
CString strQuote = _T("\"");
CString strContent;
strContent = strQuote + _T("1,23456789") + strQuote + strDelimiter + strQuote + _T("9,12345678") + strQuote;
_fileLog.Write(strContent);

str.Replace(_T("."), _T(","));
bunathangaraj 16-Sep-11 0:51am View    
Yes ...