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

# ZeyOS.TempFile

## ZeyOS.TempFile

```
object @ZeyOS.TempFile(@Base) {
	construct(string $name) {}
	delete(): $this {}
	getName(): string {}
	getPath(): string {}
	read(): string {}
	readJSON(): mixed {}
	reserve(): string {}
	toString(): string {}
	write(string $string): $this {}
	writeJSON(mixed $value): $this {}
}
```

### Prototype

**[Base](#)**

## Methods


### `$this.construct()`


```code
$this.construct(string $name): void
```

##### Parameters

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




### `$this.delete()`


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

##### Returns

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




### `$this.getName()`


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

##### Returns

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




### `$this.getPath()`


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

##### Returns

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




### `$this.read()`


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

##### Returns

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




### `$this.readJSON()`


```code
$this.readJSON(): mixed
```

##### Returns

| Type | Value |
| --- | ---  |
| `mixed` |  |




### `$this.reserve()`


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

##### Returns

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




### `$this.toString()`


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

##### Returns

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




### `$this.write()`


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

##### Parameters

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

##### Returns

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




### `$this.writeJSON()`


```code
$this.writeJSON(mixed $value): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| value | `mixed`  |  | null |

##### Returns

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