Hello everyone, please help me, every time I use File classes from java.io I get TypeError: [JavaPackage java.io.File] is not a function, it is an object. Please tell me how to solve this, the same with most of the classes from java.io. Here my code
var file = new java.io.File(Context.getOutputPath() + "\\" + Context.getOutputFile());
var writer = new java.io.FileWriter(file);
writer.write("test");
writer.close();
M. Zschuckelt on
Have you tried this:
var file = new Package.java.io.File(Context...
If I am not mistaken the Package object gives access to the Java classes.