file open() problem

Richard Chamberlain richard_chamberlain at ntlworld.com
Fri Apr 28 11:57:11 EDT 2000


Just to let you know that I'm running win98se and it works fine.

Richard
<ekw1 at my-deja.com> wrote in message news:8ebcm3$lo$1 at nnrp1.deja.com...
> I am using python1.5.2 on windows98se.  all of the following gives me
> an error.
>
> f = open('file.txt', 'r')
> f = open("file.txt", "r")
> f = open('c:/dir/file.txt', 'r')
> f = open('c:\dir\file.txt', 'r')
> f = open("c:/dir/file.txt", "r")
> f = open("c:\dir\file.txt", "r")
> f = open("c:\\dir\\file.txt", "r")
>
> The error from the python shell for any of the above is:
>
> Traceback (innermost last):
>   File "<pyshell#17>", line 1, in ?
>     f = open('file.txt', 'r')
> TypeError: illegal argument type for built-in operation
>
> Can anyone help me?  Thanks.
>
> ekw
>
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.





More information about the Python-list mailing list