Originally posted by: SystemAdmin
[alain.chabrier said:]
Indeed, there are to goody classes in script for this.
Documentation example is :
execute {
var f = new IloOplOutputFile();
f.open("output.txt");
if (f.isOpen) writeln("f is open");
else writeln("f is closed");
f.writeln("Hello World");
f.close();
if (f.isOpen) writeln("f is open");
else writeln("f is closed");
}
#DecisionOptimization#OPLusingCPOptimizer