Convert File to Base-10 number
Posted on 2002-07-05
I would like to be able to open/read the bits of a file in Maple and convert them to a base-10 number.
For example I would like to know the command that will open a file called "file.txt". Then lets assume that the bits that consist this file are "0000000000010100". Then I would like this to get converted to a base-10 number. In this example to number: 2^4+2^2=20.
It would be extremely helpful if I could find a way to do that in Maple. However, if there is another utility that would do precisely that, this would be OK also.
The O/S that I am mostly interested is Win 98.