I am trying to write a utility for formating a file of 1 Mbyte to be used as a disk in an OS simulater so that I can have my file system running on it. I am trying to use a bitmap to manage the free blocks on the disk. How can I write a bitmap, in reality an array of bits to my file and than read from that file in another program. Trying for days but no luck. Hope some one has done something like writing a format utility and file system stuff so they can better explain me this.