TextInputStream.Constructor(handle as Integer, type as Integer)

From Xojo Documentation

Revision as of 15:51, 9 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

TextInputStream.Constructor(handle as Integer, type as Integer)

Creates a TextinputStream instance.

Notes

Type is one of the HandleType class constants and Handle is the appropriate handle type specified by the Type parameter. Use one of the following class constants:

Class Constant Description
HandleTypeWin32Handle A Windows 32 OS handle.
HandleTypeFilePointer A file pointer.
HandleTypeFileNumber A file descriptor.
HandleTypeMacFileRefNum A file reference number
HandleTypeMacFileSpecPointer An FSSpec.

For instance, you can use a Declare to open a file with whatever permissions that you wish, and then pass the Handle to a stream object's constructor.