
PRO
dbeard
USA
Asked

I am not a Java expert. Can someone post an example of how to open/write and open/read a file on my local computer using the ARC Java Script editor?
Thank you very much.
Related Hardware EZ-Robot EZ-B v4
Use the File class to write files. Type File and hit . and all of the related stuff will appear.
Code:
JavaScript String Escape / Unescape
Escapes or unescapes a JavaScript string removing traces of offending characters that could prevent interpretation.
The following characters are reserved in JavaScript and must be properly escaped to be used in strings:
Horizontal Tab is replaced with \t
Vertical Tab is replaced with \v
Nul char is replaced with \0
Backspace is replaced with \b
Form feed is replaced with \f
Newline is replaced with \n
Carriage return is replaced with \r
Single quote is replaced with \'
Double quote is replaced with \"
Backslash is replaced with \\