I need to open a file that has unsorted list of names and birthdates formated like this: LASTNAME, FIRST$MM/DD/YYYY\n.It could have as much as 100 names. I will use a selection sort algorithm to alphabetize the list and store it in a new file named by the user. So how do I read the data from the file? Then take that information using a selection sort algorithm to alphabetize the list and store it in a new file? I know it's a 2D array
const int MAXNAMES=100;
const intLISTLENGTH=42;
NAMES[MAXNAMES][LISTLENGTH]
SOME psuedocode:
open file to be read
test to see if it opened
read data from file
sort data by alphabet
close file
open input file
input sorted data
ANY HINTS WOULD BE MUCH APPRECIATED!! Thanks