Hello guys, i am totally new here and i need help. What i want to do is, to read from a text file some dates and sort them to 3 arrays(days/months/years) in order to do some calculations with them. Thats how the first 2 lines look like 01/09/2003
02/09/2003
What i am strugling with is the fact that i can only read them line by line and as string and i cant find how to short them up the point where the / is met.
After reading your line from the file, you can use strtok to break it up into individual tokens, using "/" as your try delimiter. There's an explanation of strtok and an example here: