i fear you forgot to flush the string so it will write and size will get updated, but other then that - thank you very much, added the missing flush.
helped alot :)

--==edit==--
lol, well that...