
airo
stranger
Sep 27, 2001, 5:52 PM
Post #1 of 1
(1089 views)
|
Reading MS Word files
|
Can't Post
|
|
Hi, I can (with no problem) open edit and close a text file(.txt) How can I do the same with a MS Word file(.doc) Right now I'm just tring to print the contents of a simple Word file like this "This is a test file for perl " using this #!C:\Perl\bin\perl.exe use CGI qw(:all); print header; open(TF, "perltest.doc") || die "Can't open perltest.doc: $!"; $text=<TF>; close(TF); print "perltest is -- $text" I get this perltest is -- ÐÏࡱ;
|