C-DEngine 5.105

TheCommonUtils..::..cdeOpenFile Method

Opens a file in the local filesystem securely. The file will ONLY be opened under clientbin The path is automatically set and fixed up for MONO and Linux environments

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static Stream cdeOpenFile(
	string pFileName,
	FileMode pMode,
	FileAccess pAccess
)
Public Shared Function cdeOpenFile ( _
	pFileName As String, _
	pMode As FileMode, _
	pAccess As FileAccess _
) As Stream
public:
static Stream^ cdeOpenFile(
	String^ pFileName, 
	FileMode^ pMode, 
	FileAccess^ pAccess
)

Parameters

pFileName
Type: String
Filename to be opened - if it does not start with ClientBin, ClientBin is added
pMode
Type: FileMode
File mode
pAccess
Type: FileAccess
File Access Mode

Return Value