Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder3.xlned.com!news2.euro.net!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.015 X-Spam-Evidence: '*H*': 0.97; '*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; 'sat,': 0.15; '>>': 0.16; 'subject: \n ': 0.16; '\xa0print': 0.16; 'wrote:': 0.17; 'feb': 0.19; '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; 'creating': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'noticed': 0.28; 'reply.': 0.28; 'skip:& 10': 0.29; 'print': 0.32; 'version': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'but': 0.36; 'closing': 0.36; "didn't": 0.36; 'subject:with': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'help': 0.40; 'your': 0.60; 'subject': 0.66; 'sounds': 0.71; '2.7.': 0.84; '2013': 0.84; 'subject:Any': 0.84; 'angel': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=hABDnR6LrBAFCuk6lm3mCe8f2MSmFf1gq3A/kRyLOc4=; b=JHzQdwEOXxt7KKMTnNa6fQBlrAExp98ZE63bYVPIQj3DktJhIUWf+32QBzfhL42/+i z1Zj/gx2+IPoCe3GrleRhetCzyvPWF1rBx5iwpVcP0h4jd+NUsgb+F+rkd7dFocWR4H0 mzCLMWZCC+dRceYaHCzLA+gdVPIHpCCp58yAHj34DEfkmEPnrNm0ToluHZ1+4FIw87Y2 lxqaNvXPr8yImlLSkTV9IWF25OyYER5y5v5Dic8N9P8mcJQ40JHITNisEqenol5uuok1 vtcbsJxZxVVr/DFV+dU3AqOYs/jlm8MzWpLwwWGZV7r5R8AfuuuW7+JTIsgEWcy2whVB addg== MIME-Version: 1.0 X-Received: by 10.194.94.37 with SMTP id cz5mr17615705wjb.49.1360480599934; Sat, 09 Feb 2013 23:16:39 -0800 (PST) In-Reply-To: <511683C7.1070406@davea.name> References: <511683C7.1070406@davea.name> Date: Sun, 10 Feb 2013 08:16:39 +0100 Subject: Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 From: Morten Engvoldsen To: Dave Angel Content-Type: multipart/alternative; boundary=047d7bb03c2ae2085b04d5599219 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: 64 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360480607 news.xs4all.nl 6880 [2001:888:2000:d::a6]:49395 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38559 --047d7bb03c2ae2085b04d5599219 Content-Type: text/plain; charset=ISO-8859-1 Hi Dave, This sounds great, thanks for your help :) On Sat, Feb 9, 2013 at 6:13 PM, Dave Angel wrote: > 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 > --047d7bb03c2ae2085b04d5599219 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Dave,
This sounds great, thanks for your help :)

<= /div>
On Sat, Feb 9, 2013 at 6:13 PM, Dave Angel = <davea@davea.name> wrote:
On 02/09/2013 10:01 AM, Morten Engvoldse= n wrote:
Hi Davea,
I am using Python 2.7.


Sorry, I should have noticed the python version in the subject line, but di= dn't until this reply.

How about =A0print >> outfile, "Start the File".center(55, = "*")
after creating the file, and

print >> outfile, "Start the File".center(55, "*"= )
just before closing it ?

--
DaveA

--047d7bb03c2ae2085b04d5599219--