I need to read a time from an input file and translate it into manipulate-able integers for a larger program, but for the sake of learning how to work things out myself, I want to know how I would separate an entry into hours and minutes given a "txt" file that reads like so:
8:45, 9:45, etc...
here's my coding so far, attempting it by simply discarding the semicolon, to no avail... (novice work, i know:)
You will need to loop through the file and read until the end.
You can use substring to remove the colon. You can use a stringstream to conver the string 'HH' to int and same for minutes.