Finding the median from a data file

Trying to write code to solve the above problem (finding the median value from a data file). I am having problems. Any hints or suggestions??
The median is the mid point of the data. If the data was sorted then this could be trivially ascertained.
Topic archived. No new replies allowed.