Files
Digpkg/fileio/docs/write.md

18 lines
381 B
Markdown
Raw Normal View History

2026-01-23 16:38:53 +11:00
# file_Write
Open a file and overwrite its contents with the provided string in `w` mode.
## Arguments
- path (string): Path to the file you want to write to
## Returns
- success (boolean): Whether writing to the file succeeded or not
## Raises
- `FileError`: Raised if the file doesn't exist
## Example
```python
call !file_Read "my_file.txt" &contents
println $contents
```