# Editor.CodeEditor.CanOpenFile

```csharp
static bool CanOpenFile(string path)
```

Returns true if the file exists and can be opened by the current code editor.

### Parameters

- `path` (`string`)

### Returns

`bool`

Declared in [Editor.CodeEditor](/api/Editor.CodeEditor).
Assembly: `Sandbox.Tools`.
