The following is an example of the band interleaved by line (BIL) file format as it would be written for the graphic below. An actual .bil file will be binary; however, for the purpose of this example it will be shown using ASCII characters.
RGBcomposite.bil
0 0 0 0 0 0 0 0 0 0 64 64 128 128 255 255 255 255 255 255 255 255 255 255
0 0 0 0 0 0 0 0 0 0 64 64 128 128 255 255 255 255 255 255 255 255 255 255
64 64 64 64 64 64 64 64 0 0 64 64 128 128 255 255 128 128 128 128 128 128 128 128
64 64 64 64 64 64 64 64 0 0 64 64 128 128 255 255 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 0 0 64 64 128 128 255 255 64 64 64 64 64 64 64 64
128 128 128 128 128 128 128 128 0 0 64 64 128 128 255 255 64 64 64 64 64 64 64 64
255 255 255 255 255 255 255 255 0 0 64 64 128 128 255 255 0 0 0 0 0 0 0 0
255 255 255 255 255 255 255 255 0 0 64 64 128 128 255 255 0 0 0 0 0 0 0 0