Reading a file bit by bit
Posted on 2002-03-10
I may be a bit ignorant but I'm assuming I could read and write any file bit by bit (ie. 1's and 0's).
Just to satisfy my own curiosity I would like to write a simple class that would take a filename, read it in and write 1's and 0's out to the screen and at the same time write this data to another file, essentially copying the file but also displaying it bit by bit.
I have done some reasearch into datainputstream which can return bytes but I would like to be able to see the bits?
Is this possible and is there a class that would do this for me?