|
-
July 31st, 2009, 04:07 PM
#1
Using Case Function To Read File Lines
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
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|