[Tutor] read() question

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Wed May 11 19:09:15 CEST 2005



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, feel free to ask again, and
one of us here can go into more detail.

Good luck to you.



More information about the Tutor mailing list