Re: file open/read/name etc, not working

2008-05-15 Thread globalrev
On 15 Maj, 18:33, "Andreas Tawn" <[EMAIL PROTECTED]> wrote: > >import os > > >print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') > >d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') > >d.readline() > > >returns true in the shell but prints no text even though the document > >conta

RE: file open/read/name etc, not working

2008-05-15 Thread Andreas Tawn
>import os > >print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') >d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') >d.readline() > >returns true in the shell but prints no text even though the document >contains text. > >d.name returns nothing, d.name() raises an error. >-- >http

Re: file open/read/name etc, not working

2008-05-15 Thread John Machin
On May 16, 2:12 am, globalrev <[EMAIL PROTECTED]> wrote: > import os > > print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') > d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') Two different paths again. > d.readline() This reads one line and then does absolutely nothing with it

Re: file open/read/name etc, not working

2008-05-15 Thread globalrev
On 15 Maj, 18:12, globalrev <[EMAIL PROTECTED]> wrote: > import os > > print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') > d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') > d.readline() > > returns true in the shell but prints no text even though the document > contains text. >

file open/read/name etc, not working

2008-05-15 Thread globalrev
import os print os.path.exists('C:/Python25/myPrograms/netflix/test.txt') d=open('C:/Python25/myPrograms/netflix/flim.txt', 'r') d.readline() returns true in the shell but prints no text even though the document contains text. d.name returns nothing, d.name() raises an error. -- http://mail.pyth