my program will find find the width and height of the file. Bu the problem is i don't know how to specify the size of the resultant array.
mabye i could do it this ay, but any ideas ?
You could then have four variables: x_start, x_end, y_start, and y_end. When reading the array you would want to find these four points.
When you are finished reading you could then crop the array to everything between these co-ordinates.