WriteString
[stream, $str_1$, $str_2$, ... ]stream = OpenWrite[];
WriteString[stream, "This is a test 1"]
WriteString[stream, "This is also a test 2"]
pathname = Close[stream];
FilePrint[%]
DeleteFile[pathname];
stream = OpenWrite[];
WriteString[stream, "This is a test 1", "This is also a test 2"]
pathname = Close[stream]
FilePrint[%]
DeleteFile[pathname];
If stream is the string “stdout” or “stderr”, writes to the system standard output/ standard error channel:
WriteString["stdout", "Hola"]