getting infos from a website
Zutroi Zatatakowski
abou at cam.org
Sat Mar 30 14:40:40 EST 2002
Zutroi Zatatakowski wrote:
> # But then I'm trying to read the file and it never outputs what I ask:
>
> raw_input('press Return->')
>
> c = open('c:/python/tester', 'r')
> c.read()
>
> # readline(), read(), etc. don't seem to work because it doesn't output
> the 'tester' file. In this example I close then reopen the file, but
> even if I do not close it first, it doesn't output. Could it have
> something to do with file permission? (even if I'm on windoze - the
> 'tester' file in an 'archive' file).
> Anyone knows what I am doing wrong?
By the way, I can c.write() without any problem into the file though...
That's really puzzling me, I can write but cannot read. I know it's a
newbie problem but eh, so I am. :)
--
Zutroi Zatatakowski
Commando PACU
http://pacu.cjb.net
More information about the Python-list
mailing list