0

Is it possible to have multiple input streams open at the same time?

I know it takes a lot of time to open a file, and I am trying to be as efficient as possible. I really need to have two streams open at the same time. The data is too large to save to a temporary structure.

If I open stream A, then open stream B, are both streams open? Or does stream A close when I open stream B?

If they are both open, how can I differentiate between the two? For example,

fin >> x;   //does this read from stream B?

Edited by coolbeanbob: n/a

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by coolbeanbob
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.