Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Any idea how i can format my output file with********************Start file*********************** usinf Python 2.7 (http://www.velocityreviews.com/forums/t957471-re-any-idea-how-i-can-format-my-output-file-with-start-file-usinf-python-2-7-a.html)

Morten Engvoldsen 02-10-2013 03:39 PM

Re: Any idea how i can format my output file with********************Start file*********************** usinf Python 2.7
 
Hi,
Thanks for your suggestion. This is a great forum for Python. :)

On Sun, Feb 10, 2013 at 4:12 PM, inq1ltd <inq1ltd@inqvista.com> wrote:

> **
>
> 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
>
>
>
>
>
>
>
>
>
>
>




All times are GMT. The time now is 06:50 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.