<div>Hi Dave,</div><div>Thanks for your reply with full function :) Great forum.. :)<br><br></div><div class="gmail_quote">On Sun, Feb 10, 2013 at 5:46 PM, David Hutto <span dir="ltr"><<a href="mailto:dwightdhutto@gmail.com" target="_blank">dwightdhutto@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Here is the full function with an instance using the function:<br>

<div class="im"><br>
def text_wrapper(file_name = None, pre_text = None, text = None,<br>
post_text = None):<br>
</div>        f = open(file_name, 'a')<br>
        f.write("%s\n%s\n%s\n" % (pre_text, text, post_text))<br>
        f.close()<br>
<br>
<br>
text_wrapper(file_name = r"/home/david/file_doc.doc", pre_text =<br>
"***Start File***", text = "Some data here.", post_text = "***End<br>
File***")<br>
</blockquote></div><br>