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. 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.