int main(int argc, char *argv[] ) //
{
FILE *fp;
float Time[N], Volt[N];
fp = fopen(argv[1], "rt");
if ( fp == NULL )
{
printf("open file :%s error\n", argv[1] );
return -1;
}
for (i = 0; i < N; i++)
{
fscanf(fp, "%f%f", &Time[i], &Volt[i]);
if ( feof(fp) )
break;
}
fclose(fp);
return 0;
}