Perforce API for the .Net CLR P4.Net

P4Connection.PrintStream Method (Stream, String)

Prints the contents of a Perforce file to a Stream.

[Visual Basic]
Overloads Public Sub PrintStream( _
   ByVal stream As Stream, _
   ByVal depotPath As String _
)
[C#]
public void PrintStream(
   Stream stream,
   string depotPath
);

Parameters

stream
Writable stream to write the contents to.
depotPath
Perforce path of the file to print.

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

p4 print
command line.
The stream argument can be any valid stream, so long as it is initialized and writable.

See Also

P4Connection Class | P4API Namespace | P4Connection.PrintStream Overload List