Files
Getting Started
Required version: Sponge >=1.0.7
To use file operations in your Sponge program, import the module at the top of your file:
use files;You can also use an alias:
use files as fs;After importing, you can access file functions using the module name:
files.write("hello.txt", "Hello, World!");
let content = files.read("hello.txt");
print(content);