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

inq1ltd inq1ltd at inqvista.com
Sun Feb 10 10:12:41 EST 2013


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130210/6f5c6a09/attachment.html>


More information about the Python-list mailing list