Hi
How do I go about reading from a file (Input_image.txt) that contains a 2-D (50 by 100 = 5000 elements) array?
E.g.
000 004 567 034 ...
001 046 923 987 ...
004 345 003 745 ...
034 870 003 805 ...
054 345 025 545 ...
Each the spaces seperate with element.
My flaw code in question
void Data_Manu_Proc()
{
myFile = fopen("Input_image.txt","r");
for (i=0; i<50; i++)
{
for (j=0; j<100; j++)
{
fscanf(myFile,"%03d", &image_read[50][100]);
}
fclose(myFile);
}
}