BLOCKWRITE-equivalent (from PASCAL) in FORTRAN?

Hi!

My program generates INTEGERS, and I know that their values run from 0 to 255. How do I write them to binary file, using only 1 BYTE per value?
The BYTE type of variable can only handle -128 to 127. And the record-length used to write to files is specified in 4-BYTE INTEGER.
The file will not only contain this type of INTEGER values, but also other stuff.

Thanks,


Arjan
E-mail: Arjan.van.Dijk@rivm.nl

ps. Yes, the problem is related to my attempts to generate .bmp-files from within a F90 program, as mentioned in questions that I sent earlier to this forum…