Re: [Tutor] read() question

2005-05-11 Thread John Carmona
Got it now, thanks John JC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] read() question

2005-05-11 Thread Ertl, John
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

Re: [Tutor] read() question

2005-05-11 Thread John Carmona
Got it now, thanks. JC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] read() question

2005-05-11 Thread Kent Johnson
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

Re: [Tutor] read() question

2005-05-11 Thread Danny Yoo
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,

[Tutor] read() question

2005-05-11 Thread John Carmona
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