Susie,
Thank you so much! This is amazingly helpful. Two more questions:
The last line of the ascii header is marked "END", correct? On the following line, there are some NUL then a long string that describes all the characteristics of the file and then some code that is unreadable (I assume the binary array.)
1. Does the image start on the unreadable code on that same line? If I skip to the next line, the image I get is incorrect.
2. When the binary array is read, does it read top left to bottom right (going across the top line of pixels first, and then the second, and so on)?
Samuel