I am new at C programming. I have an input file and I want to skip first line of the input file and try to compose output file.My file contains some graph information. I want to get u,v,w values from input file instead of user enters.But I am getting no value for u,v,w.
printf("Enter (u v w):\n");
    for(i = 0; i < edges; ++i){
        scanf("%d%d%d", &u, &v, &w);
     }
I tried like this :
fgets(buffer, 1024, inputFile);       
        while( ( ch = fgetc(inputFile) ) != EOF )   
        {
         sscanf(buffer, "%d%d%d", &u, &v, &w);
          }
 
    