Re: [Tutor] Extract from Word Doc

2006-11-28 Thread John Fouhy
On 29/11/06, Steve Nelson <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way to pull "strings" out of a word document? Not unlike > the way the UNIX command "strings" does? Here's a crude attempt: >>> import string >>> s = file('myworddoc.doc').read() >>> t = ''.join(c for c in s if c in str

[Tutor] Extract from Word Doc

2006-11-28 Thread Steve Nelson
Hello, Is there a way to pull "strings" out of a word document? Not unlike the way the UNIX command "strings" does? I want this to be OS-portable, so shelling out is not an option. I tried opening the word doc and then looking at it using the object's methods, but it is all binary info, and can