TextInputStream.Constructor(handle as Ptr, type as IOStreamHandleTypes)
From Xojo Documentation
Constructor
Creates a TextinputStream instance.
Notes
Type is one of the IOStreamHandleTypes and Handle is the appropriate handle type specified by the Type parameter.
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.