DADiSP Worksheet Functions > Function Categories > String Manipulation > STRESCAPE
Converts special "escape" characters in a string.
STRESCAPE("string")
"string" |
- |
A string. |
A string.
fopen("TEST.TXT","w+")
fputs(strcat("This will display", strescape("\n"), "two lines.", strescape("\n")), "TEST.TXT")
fclose("TEST.TXT")
viewfile("TEST.TXT")
The is evaluated as a carriage return when the string is written to a file.
The following escape sequences are recognized:
\n |
newline |
\t |
tab |
\b |
backspace |
\r |
carriage return |
\f |
form feed |
\\ |
backslash |
\' |
single quote |
\ddd |
bit pattern |