问题
How can I write the actual bits of a vector of digits (for example: 65, 66, 67) into a file and then read them as well? I have previous code as well but It doesn't work properly. Writing above (65, 66, 67) should result in these "100000110000101000011" bits but it outputs "001100010100001000001". Here is the link to previous question containing code. Reading the dynamic bitset written data from file cannot read the correct data
How can I build write and read to/from file functions so that the actual bit reading/writing would work?
来源:https://stackoverflow.com/questions/65555032/how-to-write-and-read-actual-bits-of-boost-dynamic-bitset-to-from-file