Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  123aaa
Language: C/C++
Code:
#include<stdio.h>
#include<stdlib.h>
 
int main(void) {
  FILE * fp;
  int countrycode[300];
  char countryname[300];
  fp=fopen("C:\\Users\\wellingtonfc\\Desktop\\export.xls", "r");

  if(!fp) {
    printf("File failed to open!n");
    exit(1);
  }

  fscanf(fp,"%s%d",&countryname,countrycode);
  fclose(fp);
  fprintf(stdout,"First Line is %s%dn",countryname, countrycode);
 
  return 0;
}          
          
          
Comments: