Using an array from a file.

I half understand it but I can't find any examples online to help me with my problem. Essentially I'm trying to make a program that will read an array from a data file and bubble sort them into ascending order, and that will also find the median of the numbers in the array. I've tried writing up these functions but unless I'm writing the array into the code I don't get it.
Use ifstream to read data from files:
http://www.cplusplus.com/reference/iostream/ifstream/
A more general keyword that you could look up is serialization.
Topic archived. No new replies allowed.