1
0
forked from Mirror/wren
Files
wren/test/io/file/write_bytes_from_bytes_not_string.wren
Bob Nystrom 8e90e3577b More file IO!
Can now create, delete, and write to files.
2016-02-20 09:23:42 -08:00

10 lines
184 B
Plaintext

import "io" for File
System.print(Fiber.new {
File.create("file.temp") {|file|
file.writeBytes(123, 0)
}
}.try()) // expect: Bytes must be a string.
File.delete("file.temp")