Forums Register Login

Read / write file bit by bit

+Pie Number of slices to send: Send
Hello,
I need to do this assignment in which I need to read / write from / to a file bit by bit using a buffer. When the buffer has 8 bits, I write a byte to the file, same for reading.
Here is why I did so far, I'm using String for reading/writing and I'm sure this is not a good/eficient way to do it. If there is another way can someone please suggest, I don't need the solution directly, just some hints. Thanks


The read method works, but I would like to rewrite the class using another method do it.
Just the other day, I was thinking ... about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 6447 times.
Similar Threads
problem while dispalying from file
Reading Data from a file and extracting the data
Transferring file name then file data over socket
How to read and write for Image and PDF files
Convert file to a String
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:07:17.