# file_write

Write content to a file (creates or overwrites).

```rhai
file_write(path: &str, content: &str) -> String
```

## Examples

```rhai
file_write("/tmp/hello.txt", "Hello World")?;
```

```rhai
let config = "port: 8080\nhost: localhost";
file_write("/app/config.yaml", config)?;
```
