Possible Duplicate:
Convert a binary string representation to a byte array
I have a string s = "010101010001..." of ones and zeros that I would like to write to a binary file. How is this done?
Possible Duplicate:
Convert a binary string representation to a byte array
I have a string s = "010101010001..." of ones and zeros that I would like to write to a binary file. How is this done?
Split the string every 8 characters and then convert it to a Byte with Convert.ToByte.