File Handling Problems Python I/O

Batista, Facundo FBatista at uniFON.com.ar
Thu Jan 6 10:32:45 EST 2005


[Josh]

#- able to do so without a problem, but here's the catch: The open
#- statement is only working on certain files. I open a simple text file
#- say file1.txt without any issues, but I change the open statement to
#- another text file and it error's out stating the file 
#- doesn't exist. I
#- know the code is correct because it worked for the other file. I have
#- tried both binary and ascii modes to no avail. Any idea why this is
#- happening? I am running Python 2.3.4 wxPython 2.5.3.1 and SPE as the
#- IDE on Win2k. Thanks

Could you please post the actual code?

Also, post the result to the following: "os.listdir('.')".

.    Facundo

Bitácora De Vuelo: http://www.taniquetil.com.ar/plog
PyAr - Python Argentina: http://pyar.decode.com.ar/


  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
ADVERTENCIA.

La información contenida en este mensaje y cualquier archivo anexo al mismo,
son para uso exclusivo del destinatario y pueden contener información
confidencial o propietaria, cuya divulgación es sancionada por la ley.
Si Ud. No es uno de los destinatarios consignados o la persona responsable
de hacer llegar este mensaje a los destinatarios consignados, no está
autorizado a divulgar, copiar, distribuir o retener información (o parte de
ella) contenida en este mensaje. Por favor notifíquenos respondiendo al
remitente, borre el mensaje original y borre las copias (impresas o grabadas
en cualquier medio magnético) que pueda haber realizado del mismo.
Todas las opiniones contenidas en este mail son propias del autor del
mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones
Personales S.A. o alguna empresa asociada.
Los mensajes electrónicos pueden ser alterados, motivo por el cual
Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación
cualquiera sea el resultante de este mensaje.
Muchas Gracias.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050106/666c5bad/attachment.html>


More information about the Python-list mailing list