SoloCodigo

Programación Web y Scripting => Python => Mensaje iniciado por: poeta3d en Viernes 5 de Noviembre de 2010, 17:48

Título: LEER ARCHIVOS DE WORD CON PYTHON
Publicado por: poeta3d en Viernes 5 de Noviembre de 2010, 17:48
HOLA. NECESITO AYUDA, TENGO ESTE CODIGO Y NECESITO HACER UN PROGRAMA QUE LEA EL ARCHIVO BLABLA.doc Y ME MUESTRE EL CONTENIDO.ME PUEDEN DECIR COMO HACERLO? AGRADECERIA UNA RESPUESTA

f=open("d:Mis DocumentosBLABLA.doc","r")
f.read()
for line in f:
    print line
f.close()