I\'m trying to write a simple program to read data from files listed in a plain text list, but I keep running into a segmentation fault when I try to call fgets() in my processF
Try checking return value of fopen. What if it's NULL? Because it is likely that your "file name" has trailing \n.
fopen
NULL
\n