[Tutor] opening files

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Mon Sep 25 23:07:04 CEST 2006


> my_file = open('c:\\path\to\file\file.txt', 'r')
> my_file.readlines()
> my_file.close()
>
> Really, it's so simple it's hard to come up with directions.

Hi John,

In that case, we have to figure out why Max is getting stuck: it's not 
obvious at all at what step he's getting confused.  Let's concentrate on 
isolating that confusion.

I have no conceptual model of what Max already knows:

     * Does he know how to use functions?

     * Does he know about strings?

     * Does his tutorial material suck?

     * etc...

so Max has to be a bit more forthcoming.


More information about the Tutor mailing list