matlab.gams.control.PrintStream Class Reference
Print stream to write to stdout or file. More...
Public Member Functions | |
void | close () |
Closes print stream. | |
void | print (string text) |
Prints the given string. | |
void | println (string text) |
Prints the given string and adds a line break. | |
PrintStream (varargin) | |
Constructs a PrintStream instance. | |
Detailed Description
Print stream to write to stdout or file.
Constructor & Destructor Documentation
◆ PrintStream()
matlab.gams.control.PrintStream.PrintStream | ( | varargin | ) |
Constructs a PrintStream instance.
If a file name is given, the instance is a file stream. Otherwise it will stream to standard output.
Valid VARARGIN signatures:
- [ ]
- string filenmae
Arguments:
- filename: Name of file
Member Function Documentation
◆ print()
void matlab.gams.control.PrintStream.print | ( | string | text | ) |
Prints the given string.
Arguments:
- text: Message to be printed
◆ println()
void matlab.gams.control.PrintStream.println | ( | string | text | ) |
Prints the given string and adds a line break.
Arguments:
- text: Message to be printed