To communicate with files you use fileObjects.
Define a new fileObject like this.
new fileObject(myFileObject);
Then you can apply several different methods to communicate with files.
Path is the path from the base Blockland folder to your file. Add-Ons/myFile.txt is an example. We can also work with files inside .zip's, so you can use Add-Ons/Weapon_Sword/server.cs too.
myFileObject.openForRead(path);
This opens a file for read.
myFileObject.openForAppend(path);
This opens a file and adds to the end of it.
myFileObject.openForWrite(path);
This writes to the file. Rather than opening it and adding to the end, it actually clears the file and starts it off blank.
Now we can read/write from the file.
myFileObject.readLine();
This reads the next line and returns it. It's best to specify a variable if you want to know what it is. For use when you opened a file for reading.
myFileObject.writeLine(text);
This writes the next line and returns it. Text is the text you write to it. For use when you opened a file for writing/appending.