If you want to create, edit or append an existing MS word document through C, you can use a FILE pointer and do the same. For example:
#include
FILE *fp;
main() {
fp = fopen("myMSdocument.doc","w+");
if (fp == NULL) {
return(-1);
}
fprintf(fp,"hi there\n");
fclose(fp);
}
This code will create a MS word document namely "myMSdocument" and will write "hi there" and close the document. You can check by double clicking on the document. Hope this helps.
sir/madam, we created one document file containing text and number within table which was created using c language by CSV.How do we view the content of file in earlier time without using any novel editors.
what is the method to view such contents in the file?
please suggest me some technique to create own editor