The best I can figure is that you want to read from a file into a structure or list of structures?
Code:
int main( void )
{
ttmatiere something;
FILE* fp;
int count;
fp = fopen( "yourfile.dat", "rb" );
if( fp != NULL )
{
/*read from file*/
for( count = 0; count < n; count++ )
if( fread( &something[count], sizeof( tmatiere ), 1, fp ) != 1 )
break; /* read failed */
fclose( fp );
}
return 0;
}
That's the best that I can figure from your post.
Also, you need to give a size to your array:
Code:
chariot matter [SIZE];
Quzah.