How Can I Read the Contents of a File

Below the program of how we can read and output the contents of a file using C++