I have a file with numbers that I need for calculations and want to open the file, read the data and put the data in specific variables. The file has non-zero values, but my program just outputs zeros . . . please help!

The text file will look like this:
Params
1
2
3
4
5
6,7
Data
1,1
2,2
3,2
4,4
5,6

Code:
//Lunar Lander Phase 2

#include <stdio.h>

int main()

{
//	Declare variables

float G, vi, v, B, tstep, duration[100000], burnrate[100000], m, temp1, temp2, j;
int mi, ve, D, S, i = 0;


FILE *inFile;

inFile = fopen("LAND2.txt", "r");	
if (inFile == NULL)
{
printf("\nFailed to open the file.\n");			
exit (1);
}

else
{
printf("\nThe file LAND2.txt was opened successfully.\n");
fscanf (inFile, "Params \n");				
fscanf (inFile, "%f", &G); 				
fscanf (inFile, "%f\n", &vi);			
fscanf (inFile, "%f\n", &B);			
fscanf (inFile, "%f\n", &tstep);			
fscanf (inFile, "%d\n", &mi);				
fscanf (inFile, "%d\n", &ve);			
fscanf (inFile, "%d,", &D);			
fscanf (inFile, "%d", &S);			
fscanf (inFile, "Data \n");  

for ( i =0; i <= D; i++)
{
fscanf(inFile, "%d,%d\n", &temp1, &temp2);						
duration[i]=temp1;
printf("%d\n", duration[i]);
		
burnrate[i]=temp2;
printf("%d\n", burnrate[i]);
}
fclose (inFile);				
}

return 0;
}