1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
void CGrafic::AnalyseFichierCSV()
{
FILE *f ;
char *p, tLigne[128] ;
int index ;
int iVal,iCumulTemps ;
CString test;
nbLigneCSV = 0 ;
if (strCSVName!="")
{
f = fopen(LPCSTR(strCSVName),"r") ;
if (f)
{
iCumulTempsMax = 0 ;
do
{
p = fgets(tLigne,sizeof(tLigne),f) ;
CString strTemp=p;
bool bEndParse;
CString strWord =CStringTok(strTemp,"|",bEndParse);
//AfxMessageBox(strWord);
while(!bEndParse)
{
// Work
// ..................
AfxMessageBox(strWord);
// Get Next Token
strWord = CStringTok(NULL,"|",bEndParse); |
Partager