File.isValid

bool isValid() const @nogc nothrow @safe

Checks if the file handle is valid.

Returns

true if the file is open and valid, false otherwise