John, The 'r' is the mode and is used to indicate you are reading the file. You could also use 'w' for only writing. See the attached link for more.
http://www.python.org/doc/current/tut/node9.html#SECTION00920000000000000000 0 John -----Original Message----- From: 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 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor