Hi,
I have a binary string that I want to convert to octal, The string I want to convert is,
10001001010100000100111001000111000011010000101000011010
The String is read from a .txt file
Once its converted it should read this,
4 2 2 5 0 1 1 6 2 1 6 0 6 4 1 2 0 6 10
which I want written to the .txt file to overwrite the original binary string.
The 10 at the end should be ignored as there are not 3 digits to convert.
I'm thinking it should read the string from left to right to get the next 3 digits before converting them to its oct value. would this be the best way to do this or is there a better way?
If i'm on the right track can anyone give me an example of how to write this script please?
I've looked at the StringLeft function & StringReplace but I'm not sure how to use them the correct way to accomplish what I'm trying to do.
Thanks