already gave you the right answer, however it looks like you are still in trouble. What are your doubts about?
Are you able to read the file and fill the array (you may need to dynamicalli (re)allocate memory to fit all the integers into the array, see realloc at MSDN
Are you able to sort the array (you may use qsort
] for the purpose)?
usage is an option then your task would be easier.