TextInputStream.Constructor(handle as Integer, type as Integer)
From Xojo Documentation
Constructor
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.