Help with reading file in windows.
Steven Taschuk
staschuk at telusplanet.net
Wed May 21 13:54:27 EDT 2003
Quoth anandpillai:
[...]
> The second solution also had a problem in the 2nd line
>
> => reading_file = file(asking).read()
>
> You are trying to call read() on something which is
> not a 'file' object. There is no method 'file()' in python
> which takes a string as argument to open a file.
There is such a callable, actually, since 2.2. (A class, as it
happens.)
--
Steven Taschuk staschuk at telusplanet.net
"What I find most baffling about that song is that it was not a hit."
-- Tony Dylan Davis (CKUA)
More information about the Python-list
mailing list