Got it now, thanks John
JC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
John Carmona [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 09:51
To: tutor@python.org
Subject: [Tutor] read() question
MyText = open('The_text.txt','r').read()
In the above line could someone tell me what the 'r' stand for. Many thanks
JC
Got it now, thanks.
JC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
John Carmona wrote:
> MyText = open('The_text.txt','r').read()
>
> In the above line could someone tell me what the 'r' stand for. Many thanks
'read', i.e open the file for reading, as opposed to 'w' for writing. For more
options see the docs
for file() (a synonym for open) here:
http://docs.py
On Wed, 11 May 2005, John Carmona wrote:
> MyText = open('The_text.txt','r').read()
>
> In the above line could someone tell me what the 'r' stand for.
Hi John,
You may want to look at:
http://www.python.org/doc/lib/built-in-funcs.html#l2h-25
If you're still unsure about what 'r' means,
MyText = open('The_text.txt','r').read()
In the above line could someone tell me what the 'r' stand for. Many thanks
JC
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor