From: Christian Szegedy Date: 2002-08-14T17:51:28+09:00 Subject: Re: formated strings 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