#include <stdio.h>
#include <stdlib.h>
struct info
{
char first[100];
char second[100];
char third[100];
float forth;
float fifth;
char sixth[3];
};
int main( void )
{
FILE *pf;
struct info test[100];
pf = fopen( "test.txt", "r" );
for( int i =0; feof( pf ) != 0; i++ )
//这里就全部独到结构数组里面去了
fscanf( pf, "%s,%s,%s,%f,%f,%s", test[i].first,test[i].second, test[i].third, &test[i].forth, &test[i].fifth, test[i].sixth );
fclose( pf );
return 0;
}