CirothUngol wrote:very clever. Having read dozens of your posts in the last week, I would have expected no less.
Thanks, but the i haven't found this method. I'm unsure where i read it:
I think it was in one of the topics here on dostips.
(Edit:) Samir has used this trick first, see:
http://www.dostips.com/forum/viewtopic.php?p=27394#p27394.
CirothUngol wrote:but discovered that it would stop working at around 490 digits
Interesting find!
I didn't test my solution on that large strings, but now i found out:
Under my Windows 10 (32 bit) the above for-related solutions all only work up to 498 characters; one more and you only get a multiple not usefull characters (U+3F3F).
So you might chop the string into 498 bytes parts (or smaller if 498 is the maximum on your system).
penpen
Edit: Added link, where i first read about the trick i used above.