Q
I am trying to read data from Excel files
I use the following codes, however, it didn't work
Can anyone tell me what the format excel files have, what I should do
to read it
from C?
Thanks a lot!
#include <stdio.h>
main()
{
FILE *fp;
char StrFile[200];
int Sid;
fp = fopen( "/home/Data.xls", "r");
fscanf(fp,"%s",&StrFile);
fclose(fp);
fprintf(stdout,"First Line is %s\n",StrFile);
}
I use the following codes, however, it didn't work
Can anyone tell me what the format excel files have, what I should do
to read it
from C?
Thanks a lot!
#include <stdio.h>
main()
{
FILE *fp;
char StrFile[200];
int Sid;
fp = fopen( "/home/Data.xls", "r");
fscanf(fp,"%s",&StrFile);
fclose(fp);
fprintf(stdout,"First Line is %s\n",StrFile);
}