I have numbers written as ASCII codes in my file. For example “9” is stored as two bytes 57 i.e. 8 bits in total.
I want to optimize storage by just storing those numbers as binary values for example numbers from 0-9 to be stored using 4 bits only.
Any help?!
You could write them binary like that
But I doubt that this will be very useful