So I have a file called h.list which is a text file containing all of the filenames of the working files the rest of my program will open sequentially and use. Now for some reason the loop always reads the last file in h.list twice though I see no reason why it should.
Any help would be greatly appreciated!
printf("Cannot open h.list \n");
printf("Read %s from h.list\n", FILENAME);
/* Open the file and read the points into arrays */
/* Perform the Radial Distribution Calculation */
/* Write n(r) and g(r) to a file */