① 怎麼用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]='