instead of using while loops.
or instead of doing the following to get the 3rd line from a file.
is there a better way ?
perhaps with fseek ? if so how.
FILE *fp;
fp = fopen(path, "r");
char line_one[100];
char line_two[100];
char line_three[100];
fgets(line_one, sizeof line_one, fp);
fgets(line_two, sizeof line_two, fp);
fgets(line_three, sizeof line_three, fp);
fclose(fp);
line_three[strcspn(line_three, "\n")] = 0;