① 怎么用c语言读取word文件的内容啊,代码怎么写啊
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
intmain()
{
charch;
charbuffer[1024];//缓冲区
intlen=0;
FILE*fp;
fp=fopen("word.txt","r");
if(fp==NULL)
{
printf("openfileword.txtfailed! ");
}
while(!feof(fp))
{
ch=fgetc(fp);
buffer[len++]=ch;//放到缓冲区
if(ch==' '){
buffer[len]='