Hello,
I want to build a program that read all the lines of a file and with some case functions. Here is a file example:

example.txt
Code:
test
example
And here is some example of case function:
Code:
case test:
   cout << "Hello, World";
[...]
case example:
   cout << "Enter a number: ";
        cin >> number;
But i want that my program reads this sample file, read it's content and put the things that are in the case function in the screen(command line, in Linux: Terminal) in the order that is in the file.

Thanks,
Nathan Paulino Campos