I have a vector< bool> of binary data that I need to write into a binary file bit by bit (I know it has to be in multiples of 8 for the bytes, just assume it is). I then need to re - read that data back into a vector< bool>. I am having immense difficulty getting this to work.
The data must start and finish in the vector< bool>. Please if anyone can advise on simple syntax to achieve this, that would be a massive help.