Click or drag to resize

FGetStream Function

Access the FileStream object used by the X# Runtime for Low Level File Access

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.7
	pFile AS IntPtr
) AS FileStream
Request Example View Source


Type: IntPtr
The handle of the file. Please see the remark below about the compatibility of X# Runtime file handles and Win32 file handles.

Return Value

Type: FileStream
The FileStream object or NULL when the handle is not valid
Caution note Caution
You are not supposed to close the stream object that you retrieve with this function. The Lifetime management of the stream should be left to the X# Runtime
If you want to close the stream, please use the FClose() function
See Also