Hi guys, I am new to C++ and I have created a simple program that opens a text file and then displays its contents. For this program I have also developed a menu but I was trying to create an option so that I could enter the name of a text file and then it would open it as a new file and display the contents of it. Although I can't figure out how to do this, any advice would be great.

Thanks and happy new year!