I need to store an array of flags in a string. I was looking at using BitArray, but noticed that there is no built-in method to write to/read from a char[] or int[] or something. I can write this code easily enough, but I'd prefer to use a built-in method if there is one out there.I need to store an array of flags in a string.