i have a list of date format 1-12-2011 that i get from a txt file.
char date[30];
fstream fin("date.txt");
fin >> date;
how do i split the date array to 3 array of char day[],char month[] and char year[] for my structure list? using delimiter '-' so i get 1 to day, 12 to month and 2011 to year.