This line will read 20 characters from the file. fgets() doesn't know anything about comma seperated values.Code:fgets(array, 21, CSfile);
???
fseek() has nothing to do with arrays.
It looks like you are lacking some fundamentals. Is this for homework?
Bye, Andreas