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

Discussion in 'Python' started by Morten Engvoldsen, Feb 10, 2013.

  1. Hi,
    Thanks for your suggestion. This is a great forum for Python. :)

    On Sun, Feb 10, 2013 at 4:12 PM, inq1ltd <> 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
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
     
    Morten Engvoldsen, Feb 10, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page