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


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

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

Started byDavid Hutto <dwightdhutto@gmail.com>
First post2013-02-10 11:30 -0500
Last post2013-02-10 11:30 -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 David Hutto <dwightdhutto@gmail.com> - 2013-02-10 11:30 -0500

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

FromDavid Hutto <dwightdhutto@gmail.com>
Date2013-02-10 11:30 -0500
SubjectRe: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
Message-ID<mailman.1585.1360513822.2939.python-list@python.org>
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

[toc] | [standalone]


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


csiph-web