I stored bytes within a string in Java
String header ="00110011000000011001000000000001001011000000000100000010000000000000000000000000000000000000000000000000000000000000000000000000";
Now i want to write that String to a file, but export that as a series of bits and not encoded as a text. Writing to the file looks like this:
BufferedWriter writer = new BufferedWriter (new FileWriter("test.epd"));
writer.write(header);
How can I do this(The string in this prog will be longer --> around 8kB)