Subj : close file in REXX
To   : Bryan Rubingh
From : Eddy Thilleman
Date : Wed Aug 23 2000 04:37 am

Hello Bryan,

Sunday 20 August 2000 08:29, MIKE RUSKAI wrote to BRYAN RUBINGH:

MR> Just use stream() to close the file.  Using it to open the file is
MR> also a good idea, so you can test whether or not the open was
MR> successful.  If you rely on linein() to implicitly open the file, you
MR> won't know it failed, except by the fact that no data was read.

I agree with Mike, and test explictly on errors from opening the file, reading
from the file, writing to the file, and closing the file, all with the stream
function. I've put all this in functions for easy use. If you want, I can post
in OS2REXX.


 Greetings   -=Eddy=-

 email: [email protected]
        [email protected]
        [email protected]

... Bimbouy: A blonde in the water.
--- GoldED/2 3.0.1
* Origin:  Computer... Smoke... Uhh Ohh  (2:280/5143.7)