Hey<br><br> I'm writing a program to read a word document and copy it to another word document. But when i open the file created i get some strange characters. <br><br>The following is the code is what i tried :<br><br><br>$file='c:\abc.doc';<br>$out='c:\abc3.doc';<br>open(FILE,$file)¦¦die("Error opening file $!"<br>open(OUT,">$out"¦¦die("Error opening outfile $!"<br>$size=(-s $file);<br>sysread(FILE,$string,$i);<br>syswrite(OUT,$string,$i);<br>close(FILE);<br>close(OUT);<br><br>but when i open abc3.doc which is the output file nothing is there. Thanks for your time and i hope i will get some reply soon.<br><br>Thanks & Regards<br>Srinivas<br><br><br><br><br>