how to save my data in notepad or excel
-
dear all i would like to save my data formated 100x3, i need to save it row by row when my program will run. how to program for this function? thanks a lot. for example: sprintf(buff, "C:\database\%d",mydata), if i want to save a certain file in notepad or excel, how to do it?
gentleguy
-
dear all i would like to save my data formated 100x3, i need to save it row by row when my program will run. how to program for this function? thanks a lot. for example: sprintf(buff, "C:\database\%d",mydata), if i want to save a certain file in notepad or excel, how to do it?
gentleguy
Can you use like this code? HANDLE handle=CreateFile(_T(""C:\\database\\123.txt"),...) CFile m_File(handle); m_File.Write(mydata); ... ...
-
Can you use like this code? HANDLE handle=CreateFile(_T(""C:\\database\\123.txt"),...) CFile m_File(handle); m_File.Write(mydata); ... ...
-
i never use such code, can you explain detail thanks a lot. how to use sprintf() function to do this? thanks
gentleguy
See CFile::CFile [^] on the MSDN and see on the codeprojectCStdioFile-derived class for multibyte and Unicode reading and writing[^] of course it uses of CStdioFile.
-
dear all i would like to save my data formated 100x3, i need to save it row by row when my program will run. how to program for this function? thanks a lot. for example: sprintf(buff, "C:\database\%d",mydata), if i want to save a certain file in notepad or excel, how to do it?
gentleguy
So what exactly do you need help with? What code do you have so far? What does your data structure look like?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne