how to write a file bit by bit ..?

i have found someone using current_bit to do some bit operations..
how can file be written bit by bit
is this is the only way..
Bit by bit? I thought the smallest is byte by byte? That is for performance reasons, most IO functions accept parameters as array of bytes instead of array of bits isn't it?

I would think array of bits will be more applicable for assembly language program where you are so close to the transistors onboard a chip, you need to pass in array of bits ? Hmmm...
I wouldn't try to write a program bit-to-bit and noone would in my opinion.

Why would you like to do so? To have ultimate control on your program? You have.

The more close to this one is programming in assembly (that is the simple commands representing machine language and that is the sequence of 0 and 1). But assembly is not the best approach normally. It's not portable (you cannot write a program and run it in another) and it's error prone.

If you intend on programming microcomputer then you would program in it. Otherwise don't
Topic archived. No new replies allowed.