Originally posted by: UDOPS
With reference to this example from the documentation:
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");
}
I believe whenever I call the first line, it creates a new file that replaces any file with the same name. What if I want to save the contents of the existing file and append to it?
#DecisionOptimization#OPLusingCPLEXOptimizer