I have this string: \"101\" I want to write it to a file, in C, not as text: \"101\" and so 8 bits x char. but directly use the string as bits: the bit \"1\", the bit \"0\" and
Your output file is 4 bytes in length because you're writing an int to the file. On most platforms, an int is 4 bytes in size.
int
You won't be able to write less than 1 byte at a time.