So you want to files, huh? M'kay.
Example code:
import java.io.IOException;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
@ScriptManifest(author = "", info = "", logo = "", name = "Chicken Killer", version = 0)
public class ChickenKiller extends Script {
OSBotFileAPI osbotFile;
String profile;
@Override
public void onStart() throws InterruptedException {
initialiseCustomAPIs();
iWantToOpenAFile();
iWantToSaveStuffToAFile("Hello world