Reading the contents stored in array and put them in separate arrays..

I have the line of "7/10/2008 04:54 PM: 4.2334;3.6547" which I have already stored in an array after reading line by line from the text file,which contains date and time until the first ';', and two values separated by ';'.

what I want to do now is to read the lines from that location(array) and separately put them into new different arrays... ie. store date, time and remaining two values into different arrays ..
.
Any Solution on this??????
Well you have a delimiting character between each value (first-' ',second-':',third-';'), so just use some basic string functions to search for those characters and make substrings for you:
http://www.cplusplus.com/reference/string/string/find/
http://www.cplusplus.com/reference/string/string/substr/
Topic archived. No new replies allowed.