Flipper/Applications/Custom (UL, RM, XFW)/RogueMaster/Scripts/storage.js
2024-02-28 00:53:59 -05:00

23 lines
442 B
JavaScript

let storage = require("storage");
let path = "/ext/storage.test";
print("File exists:", storage.exists(path));
print("Writing...");
storage.write(path, "Hello World!");
print("File exists:", storage.exists(path));
print("Reading...");
let data = storage.read(path);
print(data);
print("Removing...")
storage.remove(path);
print("Done")
// There's also:
// storage.virtualInit(path);
// storage.virtualMount();
// storage.virtualQuit();