---
title: "ZeyOS.BinFile"
description: "Base"
canonical_url: "https://www.zeyos.com/zymba/ref/zeyos/zeyos-binfile"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/zeyos/zeyos-binfile.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# ZeyOS.BinFile

## ZeyOS.BinFile

```
object @ZeyOS.BinFile(@Base) {
	construct(?int $id) {}
	exists(): bool {}
	getID(): int {}
	read(): string {}
	readOut(): $this {}
	write(string $string): $this {}
}
```

### Prototype

**[Base](#)**

## Methods


### `$this.construct()`


```code
$this.construct(?int $id): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| id | `?int`  |  | new |




### `$this.exists()`


```code
$this.exists(): bool
```

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.getID()`


```code
$this.getID(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |
| `null` |  |




### `$this.read()`


```code
$this.read(): string
```

##### Returns

| Type | Value |
| --- | ---  |
| `string` |  |




### `$this.readOut()`


```code
$this.readOut(): this
```

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.write()`


```code
$this.write(string $string): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| string | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |
