I have a program where I have to create many different file stream objects to create and write to files. Is it more efficient/faster to create these objects in functions, where they will be created and closed when the functions are called? Or would it be better to find a way to create the file stream objects once and find a way to have functions call them?
Or make a class to handle creating/closing file stream objects?
Has anyone used managed C++ (.net)? What would be the most efficient way to create/close many file stream and stream writer objects?