matlab.automation.streams.ToFile class
Package: matlab.automation.streams
Superclasses: matlab.automation.streams.OutputStream
Output stream to write text to file (renamed from
matlab.unittest.plugins.ToFile
)
Description
The matlab.automation.streams.ToFile
class creates 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.
Construction
stream = matlab.automation.streams.ToFile(
creates an output stream to write text to the file fname
)fname
.
Input Arguments
|
Name of file to write the text, specified as a character vector or
string scalar. If |
Properties
|
Name of file to redirect text output from the plugin, specified in the
input argument, |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.