Hi Kevinzzz and welcome to bytes.com!
There are several steps to solving that problem. First of all, you'll have to read the values into your program. Then you should sort them as suggested by dealsoftheweek. And finally you have to output the first and last 10 entries from the sorted array/list/whatever of saved values.
Personally I'd start in the middle: Create an array/list/whatever of values in the source code for testing (you would then call them "hardcoded") and try to sort them. There are many sorting algorithms available,
Wikipedia lists a few of the most common. It's probably a good idea to start with a simple one, e.g.
selection sort, and then possibly replacing it later on (if you so desire).
To check that the sorting worked you can output the first and last 10 entries. Especially if you're using an array that shouldn't be very difficult.
When you have that working, check on how to read values from text files. What you will get will probably be of the type
char*, so find out how to turn them into
float or
double values. (Or
int values if you like - depends on how accurate you need the algorithm to be.) As soon as you have those values, use the sorting and extracting algorithms you created before.
Each of these steps should be represented through (at least) one method/function. That way you can put them together relatively easily.
If you get stuck at any point you're welcome to ask here of course. If so, please show us what you have written so far and where the problem lies.