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!
Loading
Jan MontanoPosted Mar 18, 2009, 9:36 PM
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
Bechir BejaouiPosted Mar 18, 2009, 8:09 PM