Flipper/Applications/Custom (UL, RM, XFW)/RogueMaster/Scripts/storage.js

23 lines
442 B
JavaScript
Raw Normal View History

2024-02-28 05:53:59 +00:00
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();