So, if I have
binaryString = "01010101010101001"
How do I convert the string into the binary 01010101010101001
All the pages with similar titled questions only discussed converting strings such as "Hello" into the binary form, not literal zeros and ones.
Edit:
I want to write "010101010101" to a file, but not as the binary value for the 0 and 1 characters.
EDIT:
I want to write "0010101011010" to a file as binary, please could you guide me on this.
I need to convert from "0010101011010" to base 2 number and then string? I am not sure what I would need to write for this.