Re: How to call a file

2008-05-11 Thread Yves Dorfsman
Gary Herron wrote: First of all, some terminology: You are not *calling* a file, you are *opening* it or reading. Wouldn't it be more correct to say that, in python, you either create a file object, or call a method for that object, once the object has been created ? Yves. -- http://mail.

Re: How to call a file

2008-05-10 Thread Gabriel Genellina
En Sat, 10 May 2008 12:32:47 -0300, Gary Herron <[EMAIL PROTECTED]> escribió: > Chris Sprinkles wrote: >> I'm still having trouble with calling a text file and I know its so >> simple here is the code >> >> work = open('C:\Documents and Settings

Re: How to call a file

2008-05-10 Thread Gary Herron
Chris Sprinkles wrote: I'm still having trouble with calling a text file and I know its so simple here is the code work = open('C:\Documents and Settings\Administrator\My Documents\Chris\Python\Python\work.txt', 'r') for line in work.txt:

How to call a file

2008-05-09 Thread Chris Sprinkles
I'm still having trouble with calling a text file and I know its so simple here is the code work = open('C:\Documents and Settings\Administrator\My Documents\Chris\Python\Python\work.txt', 'r') for line in work.txt: print line ---