Files
Digpkg/fileio/docs/read.md

18 lines
376 B
Markdown
Raw Normal View History

2026-01-23 16:38:53 +11:00
# file_Read
Open a file and return the contents in `r` mode.
## Arguments
- path (string): Path to the file you want to read
## Returns
- content (string): Contents of the file
## Raises
- `FileError`: Raised if the file doesn't exist or there was an error allocating memory for the file
## Example
```python
call !file_Read "my_file.txt" &contents
println $contents
```