I'm trying to read line by line (always two number) but i always get an compile error, anyone help me out?
======================================================
main()
{
FILE *fp1; /*file pointer */
FILE *fp2;
int *i, *j;
fp1 = fopen(Input_File, "r"); /* open input file */
fp2 = fopen(Output_File, "w"); /* opem output file */
if (fp1 == NULL)
printf("Cannot open %s\n", Input_File);
else
while(1) /*read in file */
{
i = fgets(int, sizeof(int), fp1);
j=fgets(int, sizeof(int), fp1);
fprintf( fp2, "%d\n", gcd(i, j) ); /* write to output */
}
fclose(fp1); /*close the file */
fclose(fp2);
}