WLJS LogoWLJS Notebook

Write

Write[channel, expr1, expr2, ...] writes the expressions expri in sequence, followed by a newline, to the specified output channel.

Examples

Write to a file:

stream = OpenWrite["output.txt"];
Write[stream, "Hello", " ", "World"];
Close[stream]

Write multiple expressions:

Write[stream, {1, 2, 3}, " - ", "data"]

Please visit the official Wolfram Language Reference for more details.

On this page