MCPcopy
hub / github.com/walterhiggins/ScriptCraft / createFile

Function createFile

src/main/js/modules/classroom/index.js:205–209  ·  view source on GitHub ↗
(fileDir, fileName, fileContent)

Source from the content-addressed store, hash-verified

203 });
204
205 function createFile(fileDir, fileName, fileContent) {
206 var out = new java.io.PrintWriter(new File(fileDir, fileName));
207 out.println(fileContent);
208 out.close();
209 }
210
211 /*
212 echo( player, 'Create your own minecraft mods by adding javascript (.js) files');

Callers 1

grantScriptingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected