I am trying to debug a program and need to find out the name of the fstream that the program is opening. Every time I cout the fstream, it give me the address instead of the filename. I have tried everything I know. How can I cout the filename instead of the address????