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.python.org/lib/built-in-funcs.html

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to