Actually I find your 'obtuse' trick rather smart; but unfortunatelly RB 5.5.5 doesnt allow dimming inside a loop; so I'm left with inp.nil.
Thanks, >From: [EMAIL PROTECTED] >Date: Tue, 23 Jan 2007 09:34:12 -0700 > >On Jan 23, 2007, at 09:31 UTC, Carlo Rubini wrote: > > > Does this approch hold true also for textInputStream and > > binaryStream? > >Yes. I never call .Close on anything in REALbasic; better to let the >framework do it when the object goes out of scope. > >Note that if I really need a stream to be closed within a method -- >perhaps because I'm about to reopen it with a different object -- I >might do something like this: > > do > Dim inp As TextInputStream = file.OpenAsTextFile > ... > loop until True > Dim bs As BinaryStream = file.OpenAsBinaryFile( True ) > ... -- Carlo _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
