Well, that depends on what type of array myResults is. Is it an array of integer values, of characters or of strings? Do you want every element of the array on a new line or not?
Let us assume myResults is an array of strings and you want every string on a new line and the strings do not contain line terminations. In this case it would be best to concatenate all the strings first to a single string and then output this very long single string.
var sOutput = myResults.join("\r\n");
if (sOutput.length) UltraEdit.activeDocument.write(sOutput);
Scripts executed with UltraEdit are fast when they avoid display updates as much as possible by doing as much as possible in memory and as less as possible in the active document window or any other document window partly visible.
Best regards from Austria