Maur?cio wrote:
> Hi,
> 
>     How can I write a formated text to a string (like I would do with printf
> when using an IO object)? I want to append a 16 character decimal to an
> existing string, with printf I would do that with ("%16d",decimal).
> 
>     Thanks,
>     Maur?cio
> 
> 
> 
> 
> 
> 

If s is a string:

s << "%16" % decimal