H
Hollywood
Hello members of the comp.lang.c++,
My log file is made of a set of 1000 following lines kind:
21/09/07 13:49:56,MW.SET.D_IGLS,2.000000
21/09/07 13:49:56,MW.SET.GNP_NT,7.000000
.....
commas ',' are used as field separators (data, name, value).
I'd need a program that read any field into the following structured
table (without the commas)
struct
{
char strDateHour[30];
char strName[80];
double value;
} Data[1000];
Please can you explain a simple code to do so ?
Thank-You
Octavio
My log file is made of a set of 1000 following lines kind:
21/09/07 13:49:56,MW.SET.D_IGLS,2.000000
21/09/07 13:49:56,MW.SET.GNP_NT,7.000000
.....
commas ',' are used as field separators (data, name, value).
I'd need a program that read any field into the following structured
table (without the commas)
struct
{
char strDateHour[30];
char strName[80];
double value;
} Data[1000];
Please can you explain a simple code to do so ?
Thank-You
Octavio