fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 155: Delete file
Idiom # 155: Delete file
See
programming-idioms.org
:
Code
io.file.delete path
What are effects?
Running Example
ex155 is path := "path/to/file" match io.file.delete path _ unit => say "$path has been successfully deleted" # logic in case of success err error => say err # error handling logic
What are effects?
last changed: 2024-07-01
next: Idiom # 156: Format integer with zero-padding