Get contents of pCOS path with type stream, fstream, or string
$p
$doc
$optlist
$path
Gets the contents of a pCOS path with type stream, fstream, or string.