for( int i=0; i<N; i++ )
{
print_dat( fp,a[i] );
print_dat( fp,b[i] );
print_dat( fp,c[i] );
...
}
と並べていくのは嫌だ、という話か?