Need Help with the code........

I need help sorting a file and displaying out the parts from binary file to output on the scree. anyone knows how to do the code for it?
Anyone who has programmed for a little while can do this.
The problem is that you need to learn how to do it.

Start with what you know how to do:
Open a file in binary mode.
Read stuff from the file into a container of some sort. (I recommend a vector.)
Sort the container.
Display it.

If you get stuck, post back with what code you have for help.
closed account (48T7M4Gy)
It's important to reiterate/emphasise that the sorting is done after reading the file into memory, not before.

It's possible to do it beforehand but it's not the easiest way to do it.

There are 3 functionalities operating
1. read a file
2. vectors (plus other containers)
3. sorting

All three are covered in the tutorials on this site.
Last edited on
Topic archived. No new replies allowed.