Print the contents of a file in Perforce to a string.
Namespace:
P4APIAssembly: p4api (in p4api)
Version: 1.0.0.0 (1.0.0)
Syntax
Parameters
- depotPath
- Type: System..::.String
Perforce path to the file.
Return Value
Contents of the file.Remarks
Attempting to call PrintText on a binary file will likely cause corruption.
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.
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
CopyC#
p4 print