I have a large string (~600 bytes) of binary bits that I need to save into a binary file.
If I just save the string to a file using String.write then the 1's and 0's will be encoded as their Unicode/ASCII values.
I need it so that if I opened the file with xxd -b for example it would output the same binary bits as I currently have in the string.
How can I accomplish this?
Data?