> For the complete documentation index, see [llms.txt](https://venndev.gitbook.io/vapm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://venndev.gitbook.io/vapm/stream/overwrite.md).

# overWrite()

This is a function that will help you overwrite a file as well as create it if they don't already exist.

```php
/**
 * @throws Throwable
 *
 * Use this to create a file or overwrite a file.
 */
public static function overWrite(string $path, string $data) : Promise;
```
