But you have not opened the file? Or you have done it and you did not post it?
c has to be an int because of EOF handling.As a result atoi has to be removed.
EOF is defined . You must remove the quotes.
Check this code. Read the comments.
/* I named the txt file test.txt */
int count = 0;
/* Read from file until EOF is reached */
i++; /* Increment by one the index of the array , */
/* so that you do not overwrite what you just read */
/* Eat a comma , as salem said */
/* Count how many numbers you read */
for(i=0 ; i<count ; i++)
/* Do not forget to close the stream */