# IsValid()

> Reports whether this FileHandle instance is valid.

## Definition

* **Type:** Method
* **Namespace:** [Unity.IO.LowLevel.Unsafe](/engine/6000.3/script-reference/unity/io/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public bool IsValid()
```

### Returns

| Type                                                          | Description                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if this FileHandle represents an open file; otherwise, false. |

### Remarks

A FileHandle is invalid if the open operation failed or the FileHandle has been closed. (Creating a new FileHandle object is also invalid.)
