Prints the contents of a Perforce file to a Stream.
Namespace:
P4APIAssembly: p4api (in p4api)
Version: 1.0.0.0 (1.0.0)
Syntax
Parameters
- stream
- Type: System.IO..::.Stream
Writable stream to write the contents to.
- depotPath
- Type: System..::.String
Perforce path of the file to print.
- encoding
- Type: System.Text..::.Encoding
Text encoding of the Stream.
Remarks
If a file is does not exist, a FileNotFound exception will be thrown (regardless
of the ExceptionLevel setting).
Depot Path, Client Path or Local Path can generally be used for the argument depotPath (so long as the argument is valid for the command line.
Encoding will only be applied to files with a Perforce type of 'text' or 'unicode'.
The stream argument can be any valid stream, so long as it is initialized and writable.
Depot Path, Client Path or Local Path can generally be used for the argument depotPath (so long as the argument is valid for the
CopyC#
p4 print
Encoding will only be applied to files with a Perforce type of 'text' or 'unicode'.
The stream argument can be any valid stream, so long as it is initialized and writable.