cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to read external file into parallel
How to read external file into parallel arrays
Dec 8, 2013 at 12:10am UTC
Ericbuggo
(1)
I have an external file that I would like to read from this file and place the values into parallel arrays.
The file has these values:
Rams
Titans
23
Patriots
Rams
20
Steelers
Seahawks
21
Dec 9, 2013 at 6:43am UTC
mattballj10
(17)
What you want to do is have a function (or 2 if you want) that streams in the first value of each line and then determine whether it is an integer or a character. Then just assign that line to their according arrays.
Topic archived. No new replies allowed.