write strings to a file or pipe
WriteLine(file, str1, str2, ...)
file descriptor or filename
str1, str2, ...
(optional) one or more Maple strings to be printed
The WriteLine(file) command writes the specified Maple expressions to the specified file, separated by newlines, and followed by a newline.
The WriteLine function returns a count of the number of characters written. Due to different character encodings, this number may differ from the number of bytes written to disk.
If file is default, the output is written to the current output stream.
If file is terminal, the line is written to the top level output stream. The top level output stream is the current output stream that was in effect when Maple was started.
If no strings are specified, only a newline is printed.
FileTools[Text][WriteLine]⁡testfile,This is a test
FileTools[Text][WriteLine]⁡testfile,This is also a test
This is a test
This is also a test
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.