# OpenFile
<span class="source-link">[[Source]](src/files/file.md#L-0-62)</span>

Open a File for read only.


```pony
primitive val OpenFile
```

## Constructors

### create
<span class="source-link">[[Source]](src/files/file.md#L-0-62)</span>


```pony
new val create()
: OpenFile val^
```

#### Returns

* [OpenFile](files-OpenFile.md) val^

---

## Public Functions

### apply
<span class="source-link">[[Source]](src/files/file.md#L-0-66)</span>


```pony
fun box apply(
  from: FilePath val)
: (File ref | FileErrNo)
```
#### Parameters

*   from: [FilePath](files-FilePath.md) val

#### Returns

* ([File](files-File.md) ref | [FileErrNo](files-FileErrNo.md))

---

### eq
<span class="source-link">[[Source]](src/files/file.md#L-0-66)</span>


```pony
fun box eq(
  that: OpenFile val)
: Bool val
```
#### Parameters

*   that: [OpenFile](files-OpenFile.md) val

#### Returns

* [Bool](builtin-Bool.md) val

---

### ne
<span class="source-link">[[Source]](src/files/file.md#L-0-66)</span>


```pony
fun box ne(
  that: OpenFile val)
: Bool val
```
#### Parameters

*   that: [OpenFile](files-OpenFile.md) val

#### Returns

* [Bool](builtin-Bool.md) val

---

