Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38576 > unrolled thread

Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

Started byinq1ltd <inq1ltd@inqvista.com>
First post2013-02-10 10:12 -0500
Last post2013-02-10 10:12 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 inq1ltd <inq1ltd@inqvista.com> - 2013-02-10 10:12 -0500

#38576 — Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7

Frominq1ltd <inq1ltd@inqvista.com>
Date2013-02-10 10:12 -0500
SubjectRe: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
Message-ID<mailman.1582.1360511284.2939.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Saturday, February 09, 2013 03:27:16 PM Morten Engvoldsen wrote:
> Hi Team,
> I Have saved my output in .doc file and want to format the output with
> 
> *************Start the File ************************
> 
> Some data here
> 
> 
> *******************End of File*****************************
> 
> Can you let me know how can i do that using Python?


Look up the textwrap module 

import the textwrap module.

from the textwrap module you can
import dedent, wrap, and fill  

These are great for formatting text.

jd 
inqvista.com




[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web