Add an optional offset to File.readBytes().
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import "io" for File
|
||||
|
||||
var file = File.open("test/io/file/file.txt")
|
||||
file.readBytes(-1) // expect runtime error: Count cannot be negative.
|
||||
Reference in New Issue
Block a user