mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
JS: Add storage.append()
This commit is contained in:
@@ -4,10 +4,13 @@ let path = "/ext/storage.test";
|
||||
print("File exists:", storage.exists(path));
|
||||
|
||||
print("Writing...");
|
||||
storage.write(path, "Hello World!");
|
||||
storage.write(path, "Hello ");
|
||||
|
||||
print("File exists:", storage.exists(path));
|
||||
|
||||
// Append will create the file even if it doesnt exist!
|
||||
storage.append(path, "World!");
|
||||
|
||||
print("Reading...");
|
||||
let data = storage.read(path);
|
||||
print(data);
|
||||
|
||||
Reference in New Issue
Block a user