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


Groups > comp.lang.python > #38577 > 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:01 -0500
Last post2013-02-10 11:01 -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:01 -0500

#38577 — 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:01 -0500
SubjectRe: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7
Message-ID<mailman.1583.1360512098.2939.python-list@python.org>
Kind of like below:

david@david-HP-Compaq-dc7600-Convertible-Minitower:~$ python
Python 2.7.3 (default, Aug  1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open("/home/david/file_doc.doc",'a')
>>> text = "data here"
>>> f.write("***Start File***\n%s\n***End File***\n" % text)
>>> f.close()
>>>

[toc] | [standalone]


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


csiph-web