Vote count:
-1
I have write a program to read all characters of file. When i try to read text file (.txt) it work perfectly. When i try to read Microsoft office word file(.doc or .docx), it only read few character of file, it does not read full file. Here is sample of code which i had writen.
****Code****
f1=fopen(f,"rt");
if(f1==NULL)
printf("The File name you enter %s ,does not contains data",f); else { f1=fopen(f,"rt"); while (1) { character = fgetc(f1);
if(feof(f1))
break;
p[h] = character;
h++;
}
Can anyone help me to solve this problem.
asked 1 min ago
How to read a Microsoft office word file in c program?
Aucun commentaire:
Enregistrer un commentaire