-
• #2
As I already wrote: I found my mistake myself. I should have used
let TestFile = Storage.open('4testing','w'); if (TestFile.write('Hello, World!')) { print('file "4testing" was successfully created'); } else { print('file "4testing" could not be created'); }
for creating the file.
Sorry for bothering you!
-
• #3
Thr 2020.01.09
For those seeking the reference link for read and write
https://banglejs.com/reference#Storage
https://banglejs.com/reference#StorageFileUsing an offset into that file data rather than overwrite
other suggested use snippet examples
Hello again,
it might not be related to my previous post which is why I created another one.
StorageFile.read() seems to always expect a
length
argument - but how do I then read a whole file? there is nosize
method?But there is another problem: when I try
the file "4testing" is successfully created - but reading it using
StorageFile.read
produces a strange result:What am I doing wrong?
BTW: I am using the "cutting edge" distribution of today