Files
Digpkg/fileio/docs/read.md
2026-01-23 16:38:53 +11:00

376 B

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

call !file_Read "my_file.txt" &contents
println $contents