[Tutor] Proper useage of "open"

frank ernest doark at mail.com
Wed Dec 12 22:09:25 CET 2012


I want to open a file so I read the library useage because I could not recall the propor useage.
 I typed in to my script:
 a = open (dupli, r)
 and got an error stating that "dupli" is not deffined.
 I started the script from within to same directorie that the file "dupli" was in. Perhaps it needs me to tell it to generate a list of files in the directorie?
 How do I get it to open the file "dupli"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121212/0743e3dd/attachment.html>


More information about the Tutor mailing list