[Tutor] Why cannot open a file?
Ares Liu
Ares.liu@Clarent.com
Wed, 3 Apr 2002 10:53:54 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_0015_01C1DAFD.D8F069E0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
C:\tmp>python
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> f =3D open('foo.foo','W')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 0] Error: 'foo.foo'
>>> f =3D open('C:\\tmp\\foo.foo','W')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 0] Error: 'C:\\tmp\\foo.foo'
>>>
how can I do it?
Regards
=20
Ares
------=_NextPart_000_0015_01C1DAFD.D8F069E0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>C:\tmp>python<BR>Python 2.1.1 (#20, =
Jul 20 2001,=20
01:19:29) [MSC 32 bit (Intel)] on win32<BR>Type "copyright", "credits" =
or=20
"license" for more information.<BR>>>> f =3D=20
open('foo.foo','W')<BR>Traceback (most recent call last):<BR> =
File=20
"<stdin>", line 1, in ?<BR>IOError: [Errno 0] Error:=20
'foo.foo'<BR>>>> f =3D =
open('C:\\tmp\\foo.foo','W')<BR>Traceback (most=20
recent call last):<BR> File "<stdin>", line 1, in =
?<BR>IOError:=20
[Errno 0] Error: 'C:\\tmp\\foo.foo'<BR>>>><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>how can I do it?</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Ares</FONT></DIV></BODY></HTML>
------=_NextPart_000_0015_01C1DAFD.D8F069E0--