From: Robert Klemme Date: 2007-07-25T18:54:41+09:00 Subject: Re: Formatting text. 2007/7/25, Marcin Tyman : > Robert Klemme wrote: > > 2007/7/25, Marcin Tyman : > >> 100 > >> 1 > >> 10 > >> 1100 > >> > >> Any help would be helpful (as always ;-) ) > > > > Please look for printf, sprintf and % in the docs. The last one might > > be hard to find. You use it as: "%3d" % 1 > > > > Kind regards > > > > robert > > OK, Fine. But... I want to format the string not its output to redirect > the string to a file on remote machine (the file should be formatted). Now what? Do you want to output or not? I do not understand your remark because with the methods I listed you can do output as well as change strings. robert