I am reading my input file one byte at a time and writing each character to my output file, like so:
while(!fIn2.eof()) {
while (fIn2.get(xCh)){
fout.put(xCh);
}
The problem resides in the fact that now, i need to write it a little bit differently. If I had bits in this order, for example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I would need them written like this:
2 1 4 3 6 5 8 7 10 9 12 11 14 13 16 15
----------------------------------------------------------------
any ideas on how to read in data and write it like this?
Thanks,
keith