The full path to the file to which stdout and stderr are to be captured
Optional
append: booleanWhether to append to the file instead of overwriting it (default: false)
Will create the file if it does not exist. Will throw if the file cannot be opened for writing.
// overwrite file if it already exists
session.cio.beginCapture("C:/capturedOutput.txt");
session.cio.beginCapture("C:/capturedOutput.txt", false);
// append to file if it already exists
session.cio.beginCapture("C:/capturedOutput.txt", true);
Start capturing stdout and stderr from the target program (e.g. printf) to specified file.