bug fix and renamed file builtin object to files

This commit is contained in:
cozis
2022-03-12 23:52:04 +01:00
parent af089fb81f
commit 6017f99b07
7 changed files with 20 additions and 15 deletions
+7
View File
@@ -0,0 +1,7 @@
buff = newBuffer(1024);
name = 'samples/bubble_sort.noja';
hdle = files.openFile(name, files.READ);
n = files.read(hdle, buff);
resl = sliceBuffer(buff, 0, n);
print('Read ', n, ' bytes.\n');
print(resl);