Sep 10, 2012, 10:02 AM
Quite obviously, there some values of $i and/or $j that you are using for which @file is not defined.
Re: [rushadrena] A file parsing and 2D array/matrix problem.
Check how you filled the @file array (is it from 0 to 9, or perhaps from 1 to 10)?
I don't want to check in the code you posted, because you posted it quite a while ago and I assume it has changed quite a bit since.
Edit: I had not seen the answer by Chris when I typed the above. Maybe it is 0 to 10 or 1 to 11, after all. You should probably filter out the extra entry as soon as you read your directory.
(This post was edited by Laurent_R on Sep 10, 2012, 10:18 AM)