Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for line in new:
#2
You should not try to read a *.docx file because it is no text file. It is zipped XML. So save the file New.docx as test ("Save as" and choose "text").
There are modules to handle *.docx files, but I don't believe that is what you need now.
Reply


Messages In This Thread
for line in new: - by andrzej357 - Jul-24-2020, 08:30 AM
RE: for line in new: - by ibreeden - Jul-24-2020, 08:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020