Quote Originally Posted by AndiPersti View Post
Well, you have a contradiction here.
Either you know where "endText" should end or it is impossible to append a '\0'.

If you tell us what you want to achieve, perhaps someone will find a good solution.
Describe the goal, not the step.

Bye, Andreas
I think I got it sorted now thanks anyway.