OK,
Is there ANY way to write to /read from a 2-dimensional Array to a text file??

Here's what i got so far:

#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>

main()
{
FILE*wrt;
int a,b,w,x,y,z;

cin>>w>>x>>y>>z;
int grid[2][2]={{w,x}, {y,z}};
for (int i=0; i<2; i++){
for (int I=0; I<2; I++){
wrt=fopen("d:\\cpp\\q", "w");
a=grid[i][I];
fputw(a, wrt);
fclose(wrt);
wrt=fopen("d:\\cpp\\q", "r+");
cout<<fgetw(wrt);
}
}

}