Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'problem?': 0.07; 'string': 0.09; 'encode': 0.09; 'filename': 0.09; 'part,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:plane.gmane.org': 0.16; 'subject:File': 0.16; 'subject:Writing': 0.16; 'trying': 0.19; 'module,': 0.24; 'file.': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'went': 0.31; 'getting': 0.31; 'file': 0.32; 'but': 0.35; 'next': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'tips': 0.61; 'new': 0.61; 'email addr:gmail.com': 0.63; 'name': 0.63; 'date,': 0.68; 'results': 0.69; "today's": 0.70; 'researched': 0.84; 'subject::': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re:Writing Python File at Specific Interval Date: Wed, 9 Jul 2014 14:55:11 -0400 (EDT) Organization: news.gmane.org References: <33d2582e-06b6-4cb9-8d60-7f94aa32283c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 97.73.240.27 X-Newsreader: PiaoHong.Usenet.Client.VIP:1.56 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404931993 news.xs4all.nl 2896 [2001:888:2000:d::a6]:39044 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74273 subhabangalore@gmail.com Wrote in message: > > > In the next part, I am trying to store the daily > results to a new file. > > As I researched I found some tips around time module, > logging module, pythoncom etc. But not getting any important > lead. > What exactly is the problem? Perhaps you want the file name to encode the date, so that today's filename might be 2014-07-09.txt ? So you need to look up the current date, make a string from it, and create that file. What have you tried, and what went wrong? -- DaveA