> For the complete documentation index, see [llms.txt](https://vc-docs.gitbook.io/engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vc-docs.gitbook.io/engine/home/doxygen_synced/classes/class_file.md).

# File

**Usage:** `api.File.SaveFileAs("out.txt", b64)`

Save files from a script.

## Public Functions

|      | Name                                                                                                                                                                                                                                                                                                                    |
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_file.md#function-savefileas"><strong>SaveFileAs</strong></a>(string fileName, string byteString)<br>Saves a file with the given name and contents. The file will not throw on failure; errors are logged instead.</p> |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_file.md#function-sendfiledata"><strong>SendFileData</strong></a>()<br>Not implemented yet; does nothing.</p>                                                                                                          |

## Public Functions Documentation

### function SaveFileAs

```csharp
static void SaveFileAs(
    string fileName,
    string byteString
)
```

Saves a file with the given name and contents. The file will not throw on failure; errors are logged instead.

**Parameters**:

* **fileName** Name to save the file as.
* **byteString** File contents, encoded as a Base64 string.

### function SendFileData

```csharp
static void SendFileData()
```

Not implemented yet; does nothing.

***

Updated on 2026-07-22 at 12:00:00 +0800
