From: Sebastian Hungerecker Date: 2007-07-25T18:54:26+09:00 Subject: Re: Formatting text. Marcin Tyman wrote: > Robert Klemme wrote: > > Please look for printf, sprintf and % in the docs. The last one might > > be hard to find. You use it as: "%3d" % 1 > > 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). sprintf and % return a string, they don't print anything to the screen. You can write the result of "%3d" % 1 to a file without a problem. -- NP: Katatonia - Fractured Ist so, weil ist so Bleibt so, weil war so