RosettaCodeData/Task/Conditional-structures/Slope/conditional-structures-2.slope

3 lines
114 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(define my-file (file-open-read "my-file.txt"))
(if my-file (write (read-all my-file)) (! "Could not open file"))