text file(file.in)
111111...111111
000001...110000
111111...111110
101000...001010
...........................
...........................
101110...100001
the high is 16 characters
the width is 16 characters
i need input a two-dimension array to **data
char **data;
int hsize; //hsize =16
int wsize; //wsize=16
int yy;
int i;
FILE *infile;
can i look as **data as data[][]?
can i use
infile=fopen("file.in","r";
yy=sizeof(char*)*hsize;
data=(char**)malloc(yy);
for(i=0;i<wsize;i++)
fscanf(infile,&data[i]);