Bubble Sort

Ok so i have a project that was designed to make us create a file with 50,000 integers between 0 and 2,000,000 then make another program to examine the file and display how many numbers were in each of the ranges using an array of 20 counters. Now we have one last part where we have to load the integers from the txt file into an array then bubble sort the array and then write the array to a new txt file with a new name. Can anyone help me out with this last part?

There are algorithms and sample code for sorting on various websites, for example

http://www.algolist.net/Algorithms/

Topic archived. No new replies allowed.