"Neil Thorman" <neil.thor...@gmail.com> wrote
This is from Alan Gauld's Learning to Program: Handling Files.
http://www.freenetpages.co.uk/hp/alan.gauld/
One other thing. That page is now quite old and out of date. You
should switch to the current web site:
http://www.alan-g.me.uk/
inp = file("menu.txt", "r")
*What is inp? What does it now contain?*
inp is a variable and it is referencing the file object you created
using the file() function. (As the tutor points out you could
also use open() and in fact open() is now preferred over file() )
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor