Determines whether the given file handle is valid.
abstract bool isValid (
) nothrow!@nogc @safe const;
A handle that is invalid will result in no operations being carried out
when used. In particular
releaseRef will have no effect, but
can safely be called and I/O operations will result in
A valid handle gets invalid when either the reference count drops to zero, or after the file was explicitly closed.