Hi,
I have a need to evaluate IF THEN ELSE statements at run time. I am trying to find an example in the simplest form. I am basically creating a "Rules Manager". I need to take values from my program at runtime (read from a file) and manipulate them. For Example:
IF (customerName == "test")
customerName == "smith";
However I need these "rules" to be stored in a separate file and not hard coded. The customerName would be coming out of my program however the IF conditional would need to be read from a text file and evaluated at runtime.
Can anyone point me in the right direction here? A basic example would be a great help.
Many thanks!
Evaluating IF statements at runtime
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Mar 18, 2009, 4:09 PM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted Mar 18, 2009, 5:36 PM EDT
If my understanding is correct, you just need to know how to access text files? If that is the case then this article would help :
How To: Reading and Writing Text Files