Hi, my question is about the fstream object. How does it work? since I was writing a program and I defined many files for the object. I want to know if I can display all the files of the object at once and if so how. Thanks for understanding. This is not a part of my homework. I know that you can display individual files at once. Just wana know how to do all of them at once.
Thanks for undestanding.

Oh and Narue. sorry for doing that again. I know how to use code tags. But I forgot to. Thanks anyway.

>How does it work?
Wow, that's an open question. ;) I don't imagine you want an implementors view though.

>I want to know if I can display all the files of the object at once and if so how.
An fstream object can only refer to a single file at any given time. It sounds like you want a vector or array of them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.