> >Just create the string outsoide the formatting line: > > > >fmtString = '%%ds' % width > > I think it should be '%%%ds' % width Good catch Bob, you need the extra % to 'escape' the literal % character. Alan G.