4
* Testing file seeking with seek()
9
with("tests/files/read.txt", "rb") {
10
contents = file.read();
13
assert(type(contents) == "string");
15
with("tests/files/read.txt", "rb") {
16
var fileContents = file.read();
18
assert(file.read() == fileContents);
20
assert(file.read() == fileContents);
21
file.seek(-(fileContents.len()), 1);
22
assert(file.read() == fileContents);
23
file.seek(-(fileContents.len()), 2);
24
assert(file.read() == fileContents);
b'\\ No newline at end of file'