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/t957475-re-any-idea-how-i-can-format-my-output-file-with-start-file-usinf-python-2-7-a.html)

David Hutto 02-10-2013 04:33 PM

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

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, text, post_text)
f.close()


All times are GMT. The time now is 01:03 PM.

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