Something went wrong. Try again.
As the name suggested, `Closeable.let` will close the resource after execution leaves the block context
Something went wrong. Try again.
170 B · 5 lines · Created 7mo ago
123456#lang rhombus/static
Closeable.let tmp = filesystem.make_temporary()Closeable.let outp = Port.Output.open_file(tmp.path, ~exists: #'truncate)outp.write_bytes(#"data")