Introduction
We use ifstream to read data from files. It helps us get information stored in files into our program.
When you want to read a list of names saved in a text file.
When you need to load settings or configuration from a file.
When you want to process data saved in a file, like numbers or text.
When you want to read a story or text from a file to display it.
When you want to read user data saved from a previous program run.