English:
With this FileManagerAPI you can easy manage your Files like reading or writing.
Germany:
Mit dieser FileManagerAPI können sie ganz einfach in datein z.B. lesen order schreiben.
This FileManagerAPI is for Java 7 or higher.
How to use FileAPI?
1. Put the "FileAPI" in you plugin right next to your Main.java
2. You have to create the api in your Main.java like so
public class Main {
public void onEnable() {
FileAPI api = new FileAPI(); // create a new FileAPI calles api
api.createFile("C:/Development/workspace/Test-Project", "Testfile.txt"); // define and create your filename and directory.
// api.createFile(this.getDataFolder().getAbsolutePath(), "TestFile.txt"); # if you want to use it on a Server
// now you can do something like this:
api.writeInNextFreeLine("Line1"); // Write "Line1" in the next free line in the File
api.writeInNextFreeLine("Line2"); // Same but in line 2
api.writeInNextFreeLine("Line3"); // also the same but in Line 3
System.out.println("Line 2: " + readline(2)); // The output will be "Line2"
}
}
createFile(); // NEEDED to create the File.
getFilename(); // Return the name of the File.
setFilename(); // You can change the Filename.
getDirectory(); // Return the file directory.
renameDirectory(); // Rename the current directory.
setDirectory(); // Will change the directory.
getFile(); // Return the complete File.
setFile(); // Chnage the file if you have your own.
renameFile(); // Rename the file.
moveFile(); // Move the File to Another Directory.
writeInNextFreeLine(); // Will write in the next free line in the File.
writeOverrideAll(); // Will override the filecontent with the new.
readAll(); // Will return an ArrayList with the filecontent.
readLine(); // Will return the readed line as a String.
writeInLine(); // Write in a specific line.
Terms And Service
You are not allowed to sell this product.
You are not allowed to claim this project as your own.
The Code from the File is not 100% written by me most from it it inspired from the internet but it got compared to a file
https://www.flaticon.com/free-icons/apiApi
icons created by Smashicons - Flaticon
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta