write
fun write(importName: String, fileName: String, toWrite: String, recursive: Boolean = false)
Content copied to clipboard
Writes a file to folder in modules.
Parameters
importName
name of the import
fileName
name of the file
toWrite
string to write in file
recursive
whether to create folders to the file location if they don't exist
fun write(fileLocation: String, toWrite: String, recursive: Boolean = false)
Content copied to clipboard
Writes a file to anywhere on the system. Use "./" for the ".minecraft" folder.
Parameters
fileLocation
the location and file name
toWrite
string to write in file
recursive
whether to create folders to the file location if they don't exist