|
-
March 22nd, 2009, 03:46 PM
#1
Inserting numbers from a .txt file into an array?
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])
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|