Re: close(writefile)
- Posted by petelomax Dec 22, 2012
- 1058 views
jimcbrown said...
Another good idea (probably in addition to this, but even on its own) would be to add an is_open() function, that takes an integer and test whether or not that integer currently can be used to represent a valid, open file.
There is a problem with this.
integer fn = open(this) close(fn) integer fn2 = open(that)
Both fn and fn2 will have the same value (3)
Pete