use for(...)

edit: something like this:

Code:
int i, j;
for(int i = 0; i < 5; i++)
   for(int j = 0; j < 5; j++)
      file_var_write(filehandle, a[i][j]);

or this, if it looks better to you:

int i, j;
for(int i = 0; i < 5; i++)
{
   for(int j = 0; j < 5; j++)
   {
      file_var_write(filehandle, a[i][j]);
   }
}


Last edited by Kartoffel; 07/12/13 19:01.

POTATO-MAN saves the day! - Random