Files
wren/test/io/file/is_open.wren
T
Bob Nystrom b7ed774da3 Reading files!
- File.close()
- File.open()
- File.read()
- file.readBytes()

And a few other little methods. Still lots more work to do, but it's a
start.
2015-09-30 21:13:36 -07:00

7 lines
170 B
Plaintext

import "io" for File
var file = File.open("test/io/file/is_open.wren")
System.print(file.isOpen) // expect: true
file.close()
System.print(file.isOpen) // expect: false