Hey all, I'm pretty much a newbie at this kind of thing so go easy on me

I'm writing a program that takes values from a .txt file and inserts them as input into array elements.

For example, within the .txt file is "244900422900"

Using an ifstream object, is there a way to read the first "900" only (ignoring the 244) and input that into the first element of my duration array below?

BEEP (400, duration[durationCount])