File.isOpen

bool isOpen() @property const @safe pure nothrow

Returns true if the file is opened.