标签:
FILE *file = NULL; char path[]="D:\\Data\\Pos.csv"; CTime m_tDateTime; m_tDateTime = m_tDateTime.GetCurrentTime(); CString strTime = m_tDateTime.Format("%Y-%m-%d %H:%M:%S"); if (NULL != (file=fopen(path,"a"))) { fprintf(file,"%.3f,%.3f,%s",x,y,bexg?"\n":""); } if(file != NULL) fclose(file);
写EXCEL(csv 可以用EXECEL打开,逗号分列隔符)
标签:
原文地址:http://www.cnblogs.com/profession/p/4633665.html