JSL Saving txt files with Windows end of line ( EOL CRLF )I have a string which I want to save with end of line compatible with Windows (CRLF EOL).
How or when can I specified such thing?
names default to here(1);
clear log();
my_string = "\[Hello
""
World!]\";
show(my_string);
Write(my_string);
// prints in JMP Log
// "Hello
// ""
// World!"
saveTextFile("$desktop/my_text.txt", my_string );<BR /><BR />// See output in Notebook++ below
ScriptingRe: JSL Saving txt files with Windows end of line ( EOL CRLF )This is handled with Escape Sequences. Documented in the Scripting Guide, available in the JMP Documentation Library under the Help pull down menu.

Re: JSL Saving txt files with Windows end of line ( EOL CRLF )I think the text has been saved correctly with Windows end of line (at least at my System win 10 JMP 15).
I opened the file in Notepad and saw no issue,
but if I check (view-> Show Symbol -> not printable characters -> Show Symbols -> Show end of line) I see the same as you, see screenshot.
Please check your Settings in Notepad, or use different Program ..

Re: JSL Saving txt files with Windows end of line ( EOL CRLF )I am after this, otherwise a bat file will not be executed just printed out.

Re: JSL Saving txt files with Windows end of line ( EOL CRLF )Sorry, haven't understood fully your initial question, you're right.
Re: JSL Saving txt files with Windows end of line ( EOL CRLF )@txnelson has the right answer.
Try this:
my_string = "Hello\!N\!"\!"\!NWorld!\!N";