Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Working with word document

by aaron_baugher (Deacon)
on Aug 27, 2012 at 22:14 UTC ( #990070=note: print w/ replies, xml ) Need Help??


in reply to Working with word document

I don't know a lot about the DOC format, but I'm pretty sure it's a binary format. It's probably not a good idea to insert extra newlines into it, as you're doing here. Just read and print the lines, without changing anything, if that's your goal. (Of course, if that's your goal, why not just use the filesystem copy command?)

Also, you're appending to the output file. If it doesn't exist, it'll be created, and that'll be fine. But if it does exist, and you're really appending to it, the DOC format may not appreciate that either.

Aaron B.
Available for small or large Perl jobs; see my home node.


Comment on Re: Working with word document

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-12-29 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls