i created a ofstream object and opened a file and written something in this file. Now i need to stream data from one of the other c++ source files
It's not clear what you're asking. It may be easier to understand if you try to describe the problem using plain non-technical language, or providing a lot more detail, such as your source code.