Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; 'subject:file': 0.07; 'python': 0.09; 'subject:2.7': 0.09; 'cc:addr:python-list': 0.10; 'file,': 0.15; 'subject: \n ': 0.16; 'wrote:': 0.17; 'sorry,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'creating': 0.26; 'am,': 0.27; 'noticed': 0.28; 'reply.': 0.28; 'print': 0.32; 'version': 0.34; 'but': 0.36; 'closing': 0.36; "didn't": 0.36; 'subject:with': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'subject': 0.66; 'received:74.208': 0.71; '2.7.': 0.84; 'received:74.208.4.194': 0.84; 'subject:Any': 0.84 Date: Sat, 09 Feb 2013 12:13:43 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Morten Engvoldsen Subject: Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:daC0Q9cUIOpFwmpjTc+3oAQtsiJZV97/pMs3DRk5lvb jDKuVPHn/ZlyGQ3Uhq/otXMlF017yH+0iwO3kf2qxMb8n1YyPk FkQdk9A/RsBmpPiY3T+5WfTMLY4aoFAnEVZOr8vmyJayh1T/gO VBOyMTS4a1Rx+xok2EsUdTPVGmt2oz+sn56dSO6NM3FPWBsoUY MXNpix7Pd88oUsEo683iZjXgNvER+zXWD2LscvfEpjGEOM7n2Z 86xsGRfQWg2fwpYLJvLuSIZ2mvBgWr332AYiNlbsr8JR7+WeCz mrTPogwh56rM+4u4exqmVMp54FmQ8k7pfvDT5xynRBayOXvnw= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360430045 news.xs4all.nl 6888 [2001:888:2000:d::a6]:45663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38532 On 02/09/2013 10:01 AM, Morten Engvoldsen wrote: > Hi Davea, > I am using Python 2.7. > Sorry, I should have noticed the python version in the subject line, but didn't until this reply. How about print >> outfile, "Start the File".center(55, "*") after creating the file, and print >> outfile, "Start the File".center(55, "*") just before closing it ? -- DaveA