I’m working on a compression program which needs to read a file into RAM as a single number and perform basic math operations and bit shifting. I’ve looked at gmp from GNU, but that has such poor integration into c/c++ I have no idea where to begin to read and put the values into the mpz_t variable.
Share
Edit: Fixed, misunderstood the original question, now it reads files as a number instead of an ASCII number.
Edit: Moved the entire file to mpz_class conversion into a nice function.