Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6128

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=118e3ab10=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:while': 0.07; 'subject:file': 0.14; 'wrote:': 0.14; "'r')": 0.16; 'quote.': 0.16; 'received:192.168.200': 0.16; 'subject:user': 0.16; 'cc:addr :python-list': 0.17; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'subject:HELP': 0.29; 'cc:addr:python.org': 0.30; 'header:User-Agent:1': 0.35; 'open': 0.36; 'subject:: ': 0.38; 'received:192': 0.38; 'subject:, ': 0.60; 'double': 0.62; 'subject:\t': 0.93
X-IronPort-AV E=Sophos;i="4.65,260,1304287200"; d="scan'208";a="1863834"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Tue, 24 May 2011 11:22:58 +0200
From Jean-Michel Pichavant <jeanmichel@sequans.com>
User-Agent Mozilla-Thunderbird 2.0.0.24 (X11/20100328)
MIME-Version 1.0
To Cathy James <nambo4jb@gmail.com>
Subject Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit
References <BANLkTinh6V3-DtdU5davGdP5a53a2eDF_Q@mail.gmail.com>
In-Reply-To <BANLkTinh6V3-DtdU5davGdP5a53a2eDF_Q@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2010.1306229048.9059.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 82.94.164.166
X-Trace 1306229049 news.xs4all.nl 49175 [::ffff:82.94.164.166]:49990
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6128

Show key headers only | View raw


Cathy James wrote:
>
> f = open ('c:/testing.txt'', 'r')
replace the double quote by a single quote.

JM

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-05-24 11:22 +0200

csiph-web