The "" needs to be in the
The does the script below give the desired result?
print("your thresholds are; "+lower, "to "+ upper);
//file=File.open("E:\\OMIG\\Iris 161017 - kopie\\Masks\\threshold.txt");
file = File.open("");
print(file, " Minimal threshold "+lower+"\n");
print(file, " Maximal threshold "+upper);
This script points out strange behavior of the print to .txt aspect of the macro language I spent all morning trying to figure work around. Question for anyone who knows,
Why does the "\n" in the print line behave like a "\t"?
The output in the .txt file from the above code looks like this
'Minimal threshold 20106 Maximal threshold 53969'
(when I pasted it in, it is initially in to 2 lines...)
When I replace the "\n" with "\t" in the above code the output in the .txt looks like this
Minimal threshold 20106
Maximal threshold 53969
What kinda of weird metacharacter magic is behind this?