mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-14 23:58:03 +01:00
12 lines
254 B
Plaintext
12 lines
254 B
Plaintext
import "io" for File
|
|
|
|
File.create("file.temp") {|file|
|
|
file.writeBytes("prettyshort", 0)
|
|
file.writeBytes("agoodbitlonger", 2)
|
|
file.writeBytes("short", 3)
|
|
}
|
|
|
|
System.print(File.read("file.temp")) // expect: prashortitlonger
|
|
|
|
File.delete("file.temp")
|