How do I include the text of a file in my Java code? -


It looks like Java has been set up for what I did before in C ++ (no big surprise) has not been done. I have a set of rules that arise from any other application (if-series of investigation then). These rules change from time to time, so in C ++ I will do this:

  double variables ForRules = 1; Bool condition = false; #include "rules.out"; If (condition) // do something  

essentially checks in the rules, then to determine whether the position should be set to the correct, "variable "Forearium (and many other variables). If it is set to true after the eval of the rules, then the program does something.

Is there a similar way to do this in Java? Or my only choice of rules. Actually there should be a whole class, which must be done immediately.

Thank you!

Since you are automating the rules.out, you can do your Java function as Hopefully autogenenerate is not very painful in adding functionality to it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -