Talk:A Beginner's Python Tutorial/File I/O

Loving this Tutorial!

However...
 * openfile=open('pathtofile','r')

does not, by itself work. I was able to sort this out, but not without some frustration. Was a file named "pathtofile" explicitly created a placed into the Documents folder at some point earlier in the tutorial?

Everything else in this excellent tutorial is literally true: I type in the text that's specified, and things work. But it's not clear from the description here that I need to substitute the name of a text file that I happen to have on my computer, and it's not clear that -- for MacOSX, anyway -- the default start point is the 'Documents' folder.

I'm not sure whether the code -- as written -- works on Windows or Linux computers; if it does, then an exception might be made for MacOSX users. I would suggest, therefore, something like the following:

Just a suggestion. Kind regards, A Long Fellow

92.40.255.83 (discuss) 13:08, 17 February 2013 (UTC)