Hi I have a very very peculiar problem,
I am trying to read a file with data in the following format
1.0000 1 1 4 and storing into a 3d array as below:
the code compiles fine, but when running i get run time error after running some loops,Code:file1= fopen("C:/Gibb.txt","r"); while(fscanf(file1,"%d %d %d %f",&filet,&filex,&filev,&filep)!=EOF) { brown[filex][filet][filev]=filep; } fclose(file1);
P.S: the data file is really huge and has about 20000 rows