Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
Morten Engvoldsen
mortenengv at gmail.com
Sun Feb 10 11:45:04 EST 2013
Hi Dave,
Thanks again for suggestion....
On Sun, Feb 10, 2013 at 5:30 PM, David Hutto <dwightdhutto at gmail.com> wrote:
> I haven't looked at text wrapper, but it would probably look
> something like this in a function, untested:
>
> def text_wrapper(file_name = None, pre_text = None, text = None,
> post_text = None):
> f = open(file, 'a')
> f.write("%s\n%s\n%s\n" % (pre_text = None, text, post_text = None)
> f.close()
>
>
> --
> Best Regards,
> David Hutto
> CEO: http://www.hitwebdevelopment.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130210/2e50a0d1/attachment.html>
More information about the Python-list
mailing list