1
0
Fork 0
forked from fun/fun

Added some documentation to some ./examples/*.fun scripts.

This commit is contained in:
Johannes Findeisen 2025-09-18 02:39:07 +02:00
commit 84ef262588
16 changed files with 151 additions and 13 deletions

View file

@ -9,6 +9,16 @@
* https://opensource.org/license/isc-license-txt
*/
/*
* File Input/Output Examples
*
* Demonstrates:
* - Reading from files with `open`
* - Writing to output files
* - Working with file streams and handles
* - Error handling during I/O operations
*/
// file I/O (writes then reads)
path = "/tmp/fun_io_example.txt"
ok = write_file(path, "hello-io")