Skip to content

Commit b32e90e

Browse files
authored
Add File Input Output in Wren (#4388)
1 parent fa605e7 commit b32e90e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import "io" for File
2+
3+
File.create("output.txt") {|f|
4+
f.writeBytes("My brain has too many tabs open.")
5+
}
6+
7+
System.print(File.read("output.txt"))

0 commit comments

Comments
 (0)