WLJS LogoWLJS Notebook

WriteString

WriteString["file", "string"] writes a string to a file.

WriteString[channel, expr1, expr2, ...] writes multiple expressions in sequence.

Examples

Write to a file:

WriteString["output.txt", "Hello, World!"]

Write to standard output:

WriteString[$Output, "Message: ", value, "\n"]

Please visit the official Wolfram Language Reference for more details.

On this page