Main Content
matlab.automation.streams.ToFile Class
Namespace: matlab.automation.streams
Superclasses: matlab.automation.streams.OutputStream
Output stream to write text to file
Renamed from matlab.unittest.plugins.ToFile
in R2023a
Description
The matlab.automation.streams.ToFile
class provides an output stream to
write text to a UTF-8 encoded file. Whenever text prints to this stream, the output stream
opens the file, appends the text, and closes the file.
Many text-oriented plugins let you direct the text they produce in a configurable manner.
You can pass a ToFile
instance to these plugins to direct their text output to
a file.
The matlab.automation.streams.ToFile
class is a handle
class.